public static void SetTrigger(this DAnimatorComponent self, string name) { if (!self.HasParameter(name)) { return; } self.Animator.SetTrigger(name); }
public static void SetIntValue(this DAnimatorComponent self, string name, int value) { if (!self.HasParameter(name)) { return; } self.Animator.SetInteger(name, value); }
public static void SetBoolValue(this DAnimatorComponent self, string name, bool state) { if (!self.HasParameter(name)) { return; } self.Animator.SetBool(name, state); }
public static void SetFloatValue(this DAnimatorComponent self, string name, float state) { if (!self.HasParameter(name)) { return; } self.Animator.SetFloat(name, state); }
public static void Play(this DAnimatorComponent self, DMotionType motionType, float motionSpeed = 1f) { if (!self.HasParameter(motionType.ToString())) { return; } self.MotionType = motionType; self.MontionSpeed = motionSpeed; }