void Update() { if (currentState != null) { currentState.Execute(this); } }
public virtual void processMovement() { if (currState != null && hamper <= 0) { currState.Execute(); } }