Exemplo n.º 1
0
 void CreatNewRoleOnClick()
 {
     LocalDateClass.CreatNewAccount(role, is_man, playname);       //把创建的角色储存到本地
     GameObject.FindGameObjectWithTag("GlobalMainControl")
     .GetComponent <GlobalMainControl>().register(0);              //让管理类去本地数据中心更新一下数据
     this.transform.parent.gameObject.SetActive(false);
 }
Exemplo n.º 2
0
 void RegisterOnClick()
 {
     if (LocalDateClass.GetAccountCount() != 0)
     {
         GameObject.FindGameObjectWithTag("GlobalMainControl").GetComponent <GlobalMainControl>()
         .register(0);               //登录第0个账号
         SwitchAccountButton.SetActive(true);
         StartGameButton.SetActive(true);
         this.gameObject.SetActive(false);
     }
     else
     {
         NewAccountUI.SetActive(true);
     }
 }