protected void UpdateMode() { if (_iModeReq == StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF) { return; } switch (_iModeReq) { case StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_ST: if (_clsTasks.Open(_clsTaskEvent) < 0) { return; } break; case StrategyRebellionTaskManagerMode.Organize: if (_clsTasks.Open(_clsTaskOrgnaize) < 0) { return; } break; } _iMode = _iModeReq; _iModeReq = StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF; }
protected void UpdateMode() { if (this._iModeReq == StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF) { return; } StrategyRebellionTaskManagerMode iModeReq = this._iModeReq; if (iModeReq != StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_ST) { if (iModeReq == StrategyRebellionTaskManagerMode.Organize) { if (this._clsTasks.Open(this._clsTaskOrgnaize) < 0) { return; } } } else if (this._clsTasks.Open(this._clsTaskEvent) < 0) { return; } this._iMode = this._iModeReq; this._iModeReq = StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF; }
public static bool ChkStateRebellionTaskIsRun(StrategyRebellionTaskManagerMode iMode) { if (StrategyTaskManager.GetStrategyRebellion().GetMode() != StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF) { return((StrategyTaskManager.GetStrategyRebellion().GetMode() == iMode) ? true : false); } return(true); }
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); }
public void ReqMode(StrategyRebellionTaskManagerMode iMode) { _iModeReq = iMode; }
public static bool ChkStateRebellionTaskIsRun(StrategyRebellionTaskManagerMode iMode) { return(StrategyTaskManager.GetStrategyRebellion().GetMode() == StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF || StrategyTaskManager.GetStrategyRebellion().GetMode() == iMode); }