Exemplo n.º 1
0
    IEnumerator CreateNewGame()
    {
        LoadingUI.instance.Show(55);
        yield return(0);

        RoleData roleData = new RoleData();

        roleData.intrinsic_disposition = new int[] { intrinsic };
        roleData.external_disposition  = external.ToArray();
        roleData.xiantianqiyun         = new int[] { rand_xiantian[sel_xiantian[0]], rand_xiantian[sel_xiantian[1]], rand_xiantian[sel_xiantian[2]] };
        roleData.sex  = sex;
        roleData.name = inputField.text;
        roleData.SetRoleAttr(attribute, max_attribute);


        ClickClose();
        MainUI.HideUI("LoginMenu");

        SaveData.NewGame(roleData);
    }
Exemplo n.º 2
0
 public virtual void ClickClose()
 {
     MainUI.HideUI(name);
 }