public void ExecuteOnButton() { Console.WriteLine("You pressed On button."); //Delegating the state behavior currentState.PressOnButton(this); }
public void PressOnButton() { currentState.PressOnButton(this); }
public void PressOnButton() { currentState.PressOnButton(this);//Delegating the state }