示例#1
0
 public void SignUp()
 {
     if (FindObjectOfType <DataController>().LogIn(Name, ID))
     {
         LogOut();
         return;
     }
     if (FindObjectOfType <DataController>().SignUp(Name, ID))
     {
         WriteToPreviousGameDataFile(Name);
         loadLevel.LoadNextScene();
     }
 }
示例#2
0
 public void Awake()
 {
     SetUpSingleton();
     loadLevel   = FindObjectOfType <LoadLevel>();
     dataControl = FindObjectOfType <DataController>();
     if (!LoggedOut())
     {
         if (dataControl.SetUserLoggedIn(Name))
         {
             loadLevel.LoadNextScene();
         }
     }
 }