Esempio n. 1
0
    private IEnumerator InitGame()
    {
        txtRes.text = "游戏初始化";
        progressBar.gameObject.SetActive(true);
        txtSpeed.gameObject.SetActive(false);
        txtSize.gameObject.SetActive(false);
        txtSize2.gameObject.SetActive(false);
        progressBar.value = 0f;
        yield return(new WaitForEndOfFrame());

        LoadTools.Init();
        txtRes.text = "";
        progressBar.gameObject.SetActive(false);
        GameObject go = Resources.Load <GameObject>("Main");

        Instantiate(go);
        Destroy(this.gameObject);
        AppBoot.instance.Init();
    }
Esempio n. 2
0
 private void runeventload()
 {
     runEvent(LoadTools.CreateObject <zebBaseAction>("zebApcUI.ClassModules.zebActLoad").indexKey);
 }
Esempio n. 3
0
 private void bLoad_Click(object sender, EventArgs e)
 {
     LoadTools?.Invoke(this, EventArgs.Empty);
 }