Пример #1
0
 public void OnPointerDown(PointerEventData eventData)
 {
     Debug.Log("Pressed " + gameObject.name);
     if (gameObject.name == "Start Game")
     {
         MS.LoadGame();
     }
     else if (gameObject.name == "Offline Challenges")
     {
         MS.LoadOffline();
     }
     else if (gameObject.name == "Leaderboards")
     {
         MS.LoadLeaderboards();
     }
     else if (gameObject.name == "Settings")
     {
         MS.LoadSettings();
     }
     else if (gameObject.name == "Exit")
     {
         MS.ExitGame();
     }
 }