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(); }
private void runeventload() { runEvent(LoadTools.CreateObject <zebBaseAction>("zebApcUI.ClassModules.zebActLoad").indexKey); }
private void bLoad_Click(object sender, EventArgs e) { LoadTools?.Invoke(this, EventArgs.Empty); }