>>89
public enum で状態を定義

updateの最初にswitch参照、状態ごとに処理を書く

ステートマシーンっちゅーやつっすわ
https://forum.unity.com/threads/very-simple-statemachine-pattern-c.38956/