Example #1
0
 private void Update()
 {
     if (selected && profile.getKeyDown(PlayerAction.Submit))
     {
         if (this.gameObject.name == "Continue_Btn")
         {
             selected = false;
             pause.Continue();
         }
         else if (this.gameObject.name == "MainMenu_Btn")
         {
             selected = false;
             pause.MainMenu();
         }
     }
 }