public override void ExitState() { Debug.Log("Exit State: RunState"); if (_characterAnimator != null) { _characterAnimator.ChangeScale(false); } }
//Methods public override void InitState <T>(T param) { _characterAnimator = param as CharacterAnimator; if (_characterAnimator != null) { _characterAnimator.ChangeScale(true); } Debug.Log("Init State: RunState"); }
//Methods public override void InitState <T>(T param) { Debug.Log("Init State: IdleState"); _characterAnimator = param as CharacterAnimator; if (_characterAnimator != null) { _characterAnimator.ChangeScale(false); _characterAnimator.ChangeColor(false); } }