Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

I got an error message called CS1529 does anyone know how I can fix this

$
0
0
// (c) Copyright HutongGames, LLC 2010-2016. All rights reserved. using Unity.MLAgents.Actuators; UnityEngine.UI; using UnityEngine; namespace HutongGames.PlayMaker.Actions { [ActionCategory(ActionCategory.Animator)] [Tooltip("Gets the playback speed of the Animator. 1 is normal playback speed")] public class GetAnimatorSpeed : FsmStateActionAnimatorBase { [RequiredField] [CheckForComponent(typeof(Animator))] [Tooltip("The Target. An Animator component is required")] public FsmOwnerDefault gameObject; [RequiredField] [UIHint(UIHint.Variable)] [Tooltip("The playBack speed of the animator. 1 is normal playback speed")] public FsmFloat speed; private Animator _animator; public override void Reset() { base.Reset(); gameObject = null; speed = null; everyFrame = false; } public override void OnEnter() { // get the animator component var go = Fsm.GetOwnerDefaultTarget(gameObject); if (go==null) { Finish(); return; } _animator = go.GetComponent(); if (_animator==null) { Finish(); return; } GetPlaybackSpeed(); if (!everyFrame) { Finish(); } } public override void OnActionUpdate() { GetPlaybackSpeed(); } void GetPlaybackSpeed() { if (_animator!=null) { speed.Value = _animator.speed; } } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>