void Awake() { gsm = new GameStateMachine(); gsm.Add(GameState.Roaming, new RoamingState()); gsm.Add(GameState.Combat, new CombatState()); gsm.Change(GameState.Roaming); }
internal void ChangeState(GameState newState) { State.Change(State.Current, newState); }
private void InitiateCombat() { inCombat = true; // Change State machine to combat gsm.Change(GameState.Combat); }