Ejemplo n.º 1
0
 public void begin()
 {
     Globle.game_CrossMono = new gameST();
     UnityEngine.Debug.Log(string.Concat(new object[]
     {
         "Screen.width::",
         Screen.width,
         " ",
         Screen.height
     }));
     Main.instance = this;
     Screen.SetResolution(Screen.width, Screen.height, true);
     Main.m_os = new osImpl();
     Main.m_os.init(base.gameObject, Screen.width, Screen.height);
     if (this.m_bforceOnlyU3DAssets)
     {
         os.asset.async = false;
     }
     Globle.Lan = "zh_cn";
     if (GameObject.Find("Sequence") != null)
     {
         this.CG_PlayOver();
     }
     else
     {
         PlayeLocalInfo.saveInt("cg_" + this.m_QSMY_ver, 1);
         base.StartCoroutine(this.PlayVideoCoroutine("qsmy_cg.mp4"));
     }
 }
Ejemplo n.º 2
0
 private void initInfo()
 {
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.DEBUG_TKN))
     {
         this.tkn.text = PlayeLocalInfo.loadString(PlayeLocalInfo.DEBUG_TKN);
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.DEBUG_UID))
     {
         this.uid.text = PlayeLocalInfo.loadString(PlayeLocalInfo.DEBUG_UID);
     }
     if (this.tkn.text == string.Empty && this.uid.text == string.Empty)
     {
         this.tkn.gameObject.SetActive(true);
         this.uid.gameObject.SetActive(true);
     }
     else if (this.tkn.text != string.Empty && this.uid.text != string.Empty)
     {
         this.tkn.gameObject.SetActive(false);
         this.uid.gameObject.SetActive(false);
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.DEBUG_SELECTED))
     {
         Toggle component = base.transform.FindChild("serverPanel/servers/s" + PlayeLocalInfo.loadInt(PlayeLocalInfo.DEBUG_SELECTED)).GetComponent <Toggle>();
         component.isOn       = true;
         this.textServer.text = component.transform.FindChild("Label").GetComponent <Text>().text;
     }
     else
     {
         Toggle component2 = base.transform.FindChild("serverPanel/servers/s7").GetComponent <Toggle>();
         component2.isOn      = true;
         this.textServer.text = component2.transform.FindChild("Label").GetComponent <Text>().text;
     }
 }
Ejemplo n.º 3
0
    private void onCLick()
    {
        PlayeLocalInfo.saveString(PlayeLocalInfo.DEBUG_TKN, this.tkn.text);
        PlayeLocalInfo.saveString(PlayeLocalInfo.DEBUG_UID, this.uid.text);
        int index = 0;

        for (int i = 0; i < this.serverList.Count; i++)
        {
            Toggle component = base.transform.FindChild("serverPanel/servers/s" + (i + 1)).GetComponent <Toggle>();
            if (component.isOn)
            {
                index = i;
                PlayeLocalInfo.saveInt(PlayeLocalInfo.DEBUG_SELECTED, i + 1);
                break;
            }
        }
        Main.instance.initParam(uint.Parse(this.uid.text), this.tkn.text, this.serverList[index]);
        UnityEngine.Object.Destroy(base.gameObject);
    }