public void StateHideAnimation(HidingPlaceBehaviour hidingPlaceBehaviour) { if (hidingPlaceBehaviour != null) { _hidingPlaceBehaviour = hidingPlaceBehaviour; } SetState(State.HideAnimation); StartHiding(); _animator.Play("Base Layer.HideAnimation"); }
public void StateHideAnimation(HidingPlaceBehaviour hidingPlaceBehaviour) { switch (_state) { case State.Hiding: { StartHiding(); return; } } SetState(State.HideAnimation); if (hidingPlaceBehaviour != null) { _hidingPlaceBehaviour = hidingPlaceBehaviour; } StartHiding(); }