Пример #1
0
    public void RestartGame()
    {
        SaveSystem.SavePlayer();
        email.SendEmail();

        endMenuUI.SetActive(false);
        GameManager.gameIsPaused = false;
        GameManager.Restart();
    }
Пример #2
0
 public void QuitGame()
 {
     Debug.Log("Quitting game...");
     SaveSystem.SavePlayer();
     email.SendEmail();
     Application.Quit();
 }
Пример #3
0
 public async Task Tele()
 {
     try
     {
         if (TradingPlatform.Messaging.Telegram.client.IsUserAuthorized())
         {
             await TradingPlatform.Messaging.Telegram.Broadcast(new Broadcast()
             {
                 Body = "Body", Subject = "Извинитье, надо потестиць"
             }, "ptpuatest");
         }
         else
         {
             await TradingPlatform.Messaging.Telegram.AuthUser();
         }
     }
     catch (Exception ex)
     {
         EmailFactory.SendEmail("*****@*****.**", "EXCEPTION", ex.Message);
     }
 }