コード例 #1
0
ファイル: BreakCommand.cs プロジェクト: GalAfik/MazeGame
 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();
     }
 }