public void Play(Action forceCallback, DelDecideHexButtonEx decideCallback) { base.Init(); this._actForceCallback = forceCallback; this._delDecideWithdrawalButton = decideCallback; Observable.Timer(TimeSpan.FromSeconds(0.30000001192092896)).Subscribe(delegate(long _) { BattleShutter shutter = BattleTaskManager.GetPrefabFile().battleShutter; shutter.ReqMode(BaseShutter.ShutterMode.Close, delegate { this.get_transform().localScaleOne(); Observable.FromCoroutine(new Func <IEnumerator>(this.PlayForceCallback), false).Subscribe(delegate(Unit __) { shutter.ReqMode(BaseShutter.ShutterMode.Open, delegate { }); }); }); }); }
public void Play(Action forceCallback, DelDecideHexButtonEx decideCallback) { base.Init(); _actForceCallback = forceCallback; _delDecideWithdrawalButton = decideCallback; Observable.Timer(TimeSpan.FromSeconds(0.30000001192092896)).Subscribe(delegate { ProdWithdrawalDecisionSelection prodWithdrawalDecisionSelection = this; BattleShutter shutter = BattleTaskManager.GetPrefabFile().battleShutter; shutter.ReqMode(BaseShutter.ShutterMode.Close, delegate { prodWithdrawalDecisionSelection.transform.localScaleOne(); Observable.FromCoroutine(prodWithdrawalDecisionSelection.PlayForceCallback).Subscribe(delegate { shutter.ReqMode(BaseShutter.ShutterMode.Open, delegate { }); }); }); }); }
protected override bool Init() { _clsState = new StatementMachine(); UIAreaMapFrame uIAreaMapFrame = SortieMapTaskManager.GetUIAreaMapFrame(); uIAreaMapFrame.Hide().setOnComplete((Action) delegate { _uiBattleShutter = BattleShutter.Instantiate(((Component)SortieBattleTaskManager.GetSortieBattlePrefabFile().prefabUIBattleShutter).GetComponent <BattleShutter>(), SortieMapTaskManager.GetSharedPlace(), 20); _uiBattleShutter.Init(BaseShutter.ShutterMode.Open); _uiBattleShutter.ReqMode(BaseShutter.ShutterMode.Close, delegate { ProdSortieEnd prodSortieEnd = ProdSortieEnd.Instantiate(((Component)SortieMapTaskManager.GetPrefabFile().prodSortieEnd).GetComponent <ProdSortieEnd>(), SortieMapTaskManager.GetSharedPlace()); prodSortieEnd.Play(delegate { _clsState.AddState(InitResult, UpdateResult); }); }); }); return(true); }