Exemple #1
0
        void Awake()
        {
            loginInit = this;

            if (SaveGame.saveGame == null)
            {
                var saveGame = new GameObject("SaveGame");
                saveGame.AddComponent <SaveGame>();
                saveGame.GetComponent <SaveGame>().InitData();
                saveGame.GetComponent <SaveGame>().InitServerList();
            }
        }
Exemple #2
0
 public void RegisterAccount(string name, string pass)
 {
     LoginInit.GetLogin().startRegister(name, pass);
 }
Exemple #3
0
 //TODO:登陆失败则删除掉用户名 密码
 public void LoginWithUserNamePass(string name, string pass)
 {
     SaveGame.saveGame.AddNewAccount(name, pass);
     LoginInit.GetLogin().StartCoroutine(LoginInit.GetLogin().loginCoroutine());
 }
Exemple #4
0
 public void LoginGame()
 {
     //LoginInit.GetLogin().StartCoroutine (LoginInit.GetLogin().loginCoroutine ());
     LoginInit.GetLogin().TryToLogin();
 }
Exemple #5
0
 public void FastRegister()
 {
     LoginInit.GetLogin().StartCoroutine(LoginInit.GetLogin().regAndLog());
 }