Example #1
0
 void OnAuthComplete(bool success, string errorText)
 {
     if (success)
     {
         Scene.LoadSceneByName("Main");
     }
     else
     {
         NoticeWindow.ShowWithOkButton("Server Error", errorText);
     }
 }
Example #2
0
 void OnGameError(Common_Error e)
 {
     NoticeWindow.ShowWithOkButton("Server Error", e.Text, Game.ApplyEnd);
 }
Example #3
0
 void OnGameEnd(Game_End e)
 {
     NoticeWindow.ShowWithOkButton("Game Ended", string.Format("Winner is '{0}'", e.Winner), Game.ApplyEnd);
 }
Example #4
0
 void OnError(Common_Error e)
 {
     NoticeWindow.ShowWithOkButton("Server Error", e.Text, () => Scene.LoadSceneByName("Login"));
 }