public static void DestroySelf() { if (_Self != null) { Destroy(_Self.gameObject); _Self = null; } }
static WGShowBearController CreateShowBear() { Object obj = Resources.Load("pbShowBearView"); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; WGShowBearController sb = go.GetComponent <WGShowBearController>(); return(sb); } return(null); }
public void ViewDidHidden(bool del = false) { if (del) { WGShowBearController.DestroySelf(); ShowOneBear.DestroySelf(); } else { WGShowBearController.Instance.DidDisappear(); WGShowBearController.Instance.ESetActive(false); } }