public void Excute(CharacterMove t) { if (t.isStandingEnd) { t.stateMachine.ChangeState(StandState.GetInstance()); } }
// Use this for initialization void Start() { animator = GetComponent <Animator>(); tr = GetComponent <Transform>(); controller = GetComponent <CharacterController>(); isCrouch = false; speed = 0.0f; stackGravity = 0.0f; MoveDir = Vector3.zero; stateMachine = new StateMachine <CharacterMove>(this); stateMachine.SetCurrentState(StandState.GetInstance()); stateMachine.SetGlobalState(CharacterGlobalState.GetInstance()); }