private void Update() { currentState.Update(); //更新 if (currentState.IsEnd()) //終わったら { currentState.Exit(animator); //終了処理 } }