public void Update() { if (currentState != null) { currentState.StateUpdate(); } }
// Update is called once per frame void Update() { if (activeState != null) { activeState.StateUpdate(); } }
void Update() { gameState.StateUpdate(); }