public void Execute() { Debug.Assert(Player != null); // If the player only pressed the button, pick up the cheese, otherwise, break it! if (TimeHeldDown < Player.Configuration.TimeToBreakCheese) { Player.PickUp(); } else { Player.Break(); } }
public void Execute() { Debug.Assert(Player != null); // If the player only pressed the button, pick up the cheese, otherwise, break it! if (TimeHeldDown < Player.Configuration.TimeToBreakCheese) { Player.PickUp(); } else { Player.Break(); } }