protected override void OnHide(bool forward) { moduleHome.DispatchEvent(Module_Home.EventSwitchCameraMode, Event_.Pop(CameraShowType.Home)); if (awakeHandle) { awakeHandle.Destroy(); } awakeHandle = null; }
public static AwakeHandle Create(AwakeType rType, GameObject rGameObject) { if (current) { if (CurrentType == rType) { current.Refresh(); return(current); } current.Destroy(); } CurrentType = rType; Util.SetLayer(rGameObject, awakeLayer); var handle = Create <AwakeHandle>(rType.ToString(), rGameObject); current = handle; return(handle); }