public void ClickButton(PlayerControllerButton button)
 {
     if (button == startButton)
     {
         startButton.Enable = true;
         stopButton.Enable = false;
         pauseButton.Enable = false;
         DisplayButtonState();
     }
     else if (button == stopButton)
     {
         startButton.Enable = false;
         stopButton.Enable = true;
         pauseButton.Enable = false;
         DisplayButtonState();
     }
     else if (button == pauseButton)
     {
         startButton.Enable = false;
         stopButton.Enable = false;
         pauseButton.Enable = true;
         DisplayButtonState();
     }
 }
 public void Register(PlayerControllerButton button)
 {
     switch (button.GetType().ToString())
     {
         case "DesignModel.StartButton":
             startButton = (StartButton) button;
             break;
         case "DesignModel.StopButton":
             stopButton = (StopButton) button;
             break;
         case "DesignModel.PauseButton":
             pauseButton = (PauseButton) button;
             break;
     }
 }