// Update is called once per frame void Update() { curState.Execute(); if (!curState.CheckIsAlive()) { curState.Exit(); curState = GetNextState(); curState.Enter(); } RefreshUI(); }
public void Execute() { _state?.Execute(); }