private void Awake() { _clsInput = new KeyControl(); _iRecoveryType = ShipRecoveryType.None; _clsTasks = this.SafeGetComponent <SceneTasksMono>(); _clsTasks.Init(); _iMode = (_iModeReq = SortieBattleMode.SortieBattleMode_BEF); _camTransitionCamera.enabled = false; }
private void Start() { _clsTasks.Init(); _iPhase = (_iPhaseReq = ArsenalPhase.BattlePhase_ST); SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(logicManager); _clsConstruct.firstInit(); _clsList.firstInit(); }
private IEnumerator Start() { _clsTasks = base.gameObject.SafeGetComponent <SceneTasksMono>(); _mainObj = GameObject.Find("OrganizeRoot").gameObject; GameObject task = _mainObj.transform.FindChild("Task").gameObject; _clsTop = ((Component)task.transform.FindChild("TaskTop")).GetComponent <TaskOrganizeTop>(); _clsDetail = ((Component)task.transform.FindChild("TaskDetail")).GetComponent <TaskOrganizeDetail>(); _clsList = ((Component)task.transform.FindChild("TaskList")).GetComponent <TaskOrganizeList>(); _clsListDetail = ((Component)task.transform.FindChild("TaskListDetail")).GetComponent <TaskOrganizeListDetail>(); _clsTasks.Init(); _iPhase = (_iPhaseReq = OrganizePhase.Phase_ST); logicManager = new OrganizeManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID); _clsDetail.FirstInit(); _clsList.FirstInit(); _clsListDetail.FirstInit(); _clsTop.FirstInit(); isRun = false; yield return(StartCoroutine(Util.WaitEndOfFrames(3))); SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(logicManager); BGMFileInfos sceneBGM = (BGMFileInfos)logicManager.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID); SoundUtils.SwitchBGM(sceneBGM); SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(null, isLockTouchOff : false); yield return(new WaitForSeconds(0.2f)); _clsTop.ShowBanner(); yield return(new WaitForSeconds(0.4f)); if (!SingletonMonoBehaviour <TutorialGuideManager> .Instance.CheckAndShowFirstTutorial(logicManager.UserInfo.Tutorial, TutorialGuideManager.TutorialID.Organize, null, delegate { SingletonMonoBehaviour <UIShortCutMenu> .Instance.CloseMenu(); SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable: false); _clsTop.isControl = true; })) { SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : false); } isRun = true; yield return(null); }
protected override bool Init() { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; int rebellionArea = RebellionArea; _clsRebellionManager = StrategyTopTaskManager.GetLogicManager().SelectAreaForRebellion(rebellionArea); _clsInput = new KeyControl(); _clsTasks = this.SafeGetComponent <SceneTasksMono>(); _clsTasks.Init(); _iMode = (_iModeReq = StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF); Observable.FromCoroutine((IObserver <bool> observer) => CreateRequireInstante(observer)).Subscribe(delegate(bool x) { if (x) { _iMode = (_iModeReq = StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_ST); } }).AddTo(base.gameObject); return(true); }
protected override void Awake() { _clsTasks = this.SafeGetComponent <SceneTasksMono>(); _clsTasks.Init(); GameObject gameObject = base.transform.FindChild("Task").gameObject; _clsTopTask = ((Component)gameObject.transform.FindChild("StrategyTop")).GetComponent <StrategyTopTaskManager>(); _clsRebellionTask = ((Component)gameObject.transform.FindChild("Rebellion")).GetComponent <StrategyRebellionTaskManager>(); if (SingletonMonoBehaviour <FadeCamera> .Instance != null) { SingletonMonoBehaviour <FadeCamera> .Instance.SetActive(isActive : true); } if (!KeyControlManager.exist()) { Util.Instantiate(KeyManager); } _traOverView = base.transform.FindChild("OverView"); _traOverViewCamera = ((Component)_traOverView.FindChild("OverViewCamera")).GetComponent <Camera>(); _traMapRoot = base.transform.FindChild("Map Root"); }
private void Start() { _clsTasks.Init(); Observable.FromCoroutine(_uiTitleBackground.StartBackgroundAnim).Subscribe().AddTo(base.gameObject); }
private void Start() { _iMode = (_iModeReq = InheritTaskManagerMode.InheritTaskManagerMode_ST); _clsTasks.Init(); }
private void Start() { _iMode = (_iModeReq = StartupTaskManagerMode.StartupTaskManagerMode_ST); _clsTasks.Init(); }