示例#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();
    }
示例#2
0
 private void runeventload()
 {
     runEvent(LoadTools.CreateObject <zebBaseAction>("zebApcUI.ClassModules.zebActLoad").indexKey);
 }
示例#3
0
文件: ToolsForm.cs 项目: airmay/CAM
 private void bLoad_Click(object sender, EventArgs e)
 {
     LoadTools?.Invoke(this, EventArgs.Empty);
 }