private void SetupLeaveTimer() { if (this._disLeaveSubscription != null) { this._disLeaveSubscription.Dispose(); } this._disLeaveSubscription = Observable.Timer(TimeSpan.FromSeconds(30.0)).Subscribe(delegate(long _) { this._clsState.Clear(); UITitleLogo uITitleLogo = TitleTaskManager.GetUITitleLogo(); uITitleLogo.Hide(); SoundUtils.StopFadeBGM(0.3f, delegate { TitleTaskManager.ReqMode(TitleTaskManagerMode.TitleTaskManagerMode_ST); }); }).AddTo(base.get_gameObject()); }
private void OnDecideMode(SelectMode iMode) { UnityEngine.Object.Destroy(_ctrlTitleSelectMode.gameObject); Mem.Del(ref _ctrlTitleSelectMode); switch (iMode) { case SelectMode.Appointed: TitleTaskManager.ReqMode(TitleTaskManagerMode.NewGame); break; case SelectMode.Inheriting: Observable.FromCoroutine((UniRx.IObserver <AsyncOperation> observer) => TitleTaskManager.GotoLoadScene(observer)).Subscribe(delegate(AsyncOperation x) { x.allowSceneActivation = true; }).AddTo(base.gameObject); break; } }
private void OnDecideMode(SelectMode iMode) { Object.Destroy(this._ctrlTitleSelectMode.get_gameObject()); Mem.Del <CtrlTitleSelectMode>(ref this._ctrlTitleSelectMode); if (iMode != SelectMode.Appointed) { if (iMode == SelectMode.Inheriting) { Observable.FromCoroutine <AsyncOperation>((IObserver <AsyncOperation> observer) => TitleTaskManager.GotoLoadScene(observer)).Subscribe(delegate(AsyncOperation x) { x.set_allowSceneActivation(true); }).AddTo(base.get_gameObject()); } } else { TitleTaskManager.ReqMode(TitleTaskManagerMode.NewGame); } }
private void OnMovieFinished() { TitleTaskManager.ReqMode(TitleTaskManagerMode.SelectMode); }
private void OnCancel() { TitleTaskManager.ReqMode(TitleTaskManagerMode.SelectMode); }