InputCondition.cs (460B)
1 using Slimecing.Characters; 2 using UnityEngine; 3 4 namespace Slimecing.StateMachine.StateChangers 5 { 6 public class InputCondition : StateChangerCondition 7 { 8 [SerializeField] private CharacterMovementController characterMovementController; 9 [SerializeField] private bool isTakingInput; 10 public override bool IsMet() 11 { 12 return (characterMovementController.MoveInput != Vector2.zero) == isTakingInput; 13 } 14 } 15 }