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