//展开等待界面 public void showWaitingTime() { Transform UI = GameObject.Find("EasyTouchControlsCanvas").transform; GameObject prefab = Resources.Load <GameObject>("prefab/GameWait"); GameObject waitPage = GameObject.Instantiate(prefab, UI) as GameObject; GameWait gameWait = waitPage.GetComponent <GameWait>(); gameWait.alive = true; gameWait.msg = "等待复活时间...."; }
void Start() { GMScript = GameObject.Find("遊戲管理器").GetComponent <GameWait>(); }