void Update() { if (currentState != currentState.GetNextState()) { currentState.End(); currentState = currentState.GetNextState(); currentState.Start(); } currentState.Update(); }
public void Activate(ItemIconSlot startSlot) { currentSlot = startSlot; currentState = new ItemIconIdleState(this); currentState.Start(); }