void Awake() { o_loading_panel = GameObject.Find("scene_waiting"); o_loading_wait = GameObject.Find("scene_waiting/sp_wait"); o_btnQuit = GameObject.Find("scene_waiting/btn_cancel"); if (instance == null) { instance = this; } }
private void OnDestroy() { instance = null; }