コード例 #1
0
 public override void OnClick(Selectable item)
 {
     if (item.name.Equals(mBtnResume.name))
     {
         mShooter.ResumeGame();
     }
     else if (item.name.Equals(mBtnQuit.name))
     {
         if (Application.isEditor)
         {
             Debug.Log("Nothing happens in the editor");
         }
         else
         {
             Application.Quit();
         }
     }
 }