예제 #1
0
        private IEnumerator PlayPortBackEo(UniRx.IObserver <bool> observer)
        {
            SortieBattleTaskManager.GetMapManager();
            UISortieShip      uiss = SortieMapTaskManager.GetUIMapManager().sortieShip;
            MapEventItemModel meim = SortieBattleTaskManager.GetMapManager().GetItemEvent();

            yield return(new WaitForSeconds(1.5f));

            uiss.PlayBalloon(meim, delegate
            {
                throw new NotImplementedException("なにこれ");
                // base.observer.OnNext(value: true);
                // base.observer.OnCompleted();
            });
        }
예제 #2
0
 private IEnumerator ChkComment(MapManager manager, UISortieShip ship)
 {
     if (manager.Comment != 0)
     {
         bool isFinished = false;
         ship.PlayBalloon(manager.Comment, delegate
         {
             isFinished = true;
         });
         while (!isFinished)
         {
             yield return(null);
         }
     }
 }
예제 #3
0
        private bool Init(List <CellModel> cells, Action <int> onDecide)
        {
            _nSelectIndex    = 0;
            _isInputPossible = false;
            UIAreaMapFrame uiamf = SortieMapTaskManager.GetUIAreaMapFrame();

            _listCellModel      = cells;
            _actOnDecideMapCell = onDecide;
            UISortieShip ship = SortieMapTaskManager.GetUIMapManager().sortieShip;

            ship.PlayBalloon(enumMapEventType.Stupid, enumMapWarType.Midnight, delegate
            {
                ship.ShowInputIcon();
                uiamf.SetMessage("艦隊の針路を選択できます。\n提督、どちらの針路を選択しますか?");
                ActiveTargetCell(cells);
                Observable.NextFrame(FrameCountType.EndOfFrame).Subscribe(delegate
                {
                    _isInputPossible = true;
                });
            });
            return(true);
        }
        protected override IEnumerator AnimationObserver(UniRx.IObserver <bool> observer)
        {
            UIMapManager   uimm  = SortieMapTaskManager.GetUIMapManager();
            UISortieShip   uiss  = uimm.sortieShip;
            UIAreaMapFrame uiamf = SortieMapTaskManager.GetUIAreaMapFrame();

            uiamf.SetMessage(_clsEventModel.AircraftType);
            Transform airRecPoint = null;

            if (uimm.airRecPoint.ContainsKey(uimm.nextCell.cellModel.CellNo))
            {
                airRecPoint = uimm.airRecPoint[uimm.nextCell.cellModel.CellNo];
            }
            bool isWait2 = true;

            uiss.PlayAirReconnaissance(_clsEventModel.AircraftType, uiss.transform, airRecPoint, delegate
            {
                throw new NotImplementedException("なにこれ");
                // base._003CisWait_003E__4 = false;
            });
            while (isWait2)
            {
                yield return(null);
            }
            isWait2 = true;
            uiss.PlayBalloon(_clsEventModel, SortieBattleTaskManager.GetMapManager().GetItemEvent(), delegate
            {
                throw new NotImplementedException("なにこれ");
                // base._003CisWait_003E__4 = false;
            });
            while (isWait2)
            {
                yield return(null);
            }
            uiamf.ClearMessage();
            observer.OnNext(value: true);
            observer.OnCompleted();
        }
예제 #5
0
        private IEnumerator AnimationObserver(UniRx.IObserver <bool> observer)
        {
            if (isPlaying)
            {
                observer.OnNext(value: true);
                observer.OnCompleted();
                isPlaying = false;
            }
            isPlaying = true;
            panel.widgetsAreStatic = false;
            UIAreaMapFrame uiamf                = SortieMapTaskManager.GetUIAreaMapFrame();
            UISortieShip   uisp                 = SortieMapTaskManager.GetUIMapManager().sortieShip;
            bool           isWaitTimer2         = false;
            bool           isWaitVoiceFinished2 = false;
            bool           isWaitAnimation4     = false;

            uiamf.SetMessage("艦隊に洋上補給を行います。");
            yield return(new WaitForEndOfFrame());

            uisp.PlayBalloon(delegate
            {
                throw new NotImplementedException("なにこれ");
                // base._003CisWaitAnimation_003E__4 = true;
            });
            while (!isWaitAnimation4)
            {
                yield return(null);
            }
            isWaitAnimation4 = false;
            LeanTween.delayedCall(1f, (Action) delegate
            {
                throw new NotImplementedException("なにこれ");
                // base._003CisWaitTimer_003E__2 = true;
            });
            LeanTween.delayedCall(1f, (Action) delegate
            {
                throw new NotImplementedException("なにこれ");
                // ShipUtils.PlayShipVoice(this._listShipInfos[1].Item2, 26, delegate
                //{
                //	base._003CisWaitVoiceFinished_003E__3 = true;
                //});
            }).setOnStart(delegate
            {
                throw new NotImplementedException("なにこれ");
                //this._listShipInfos[1].Item1.transform.LTValue(this._listShipInfos[1].Item1.alpha, 1f, this._strParams.showTime).setEase(this._strParams.showEaseType).setOnUpdate(delegate(float x)
                //{
                //	this._listShipInfos[1].Item1.alpha = x;
                //})
                //	.setOnComplete((Action)delegate
                //	{
                //		base._003CisWaitAnimation_003E__4 = true;
                //	});
                //this._listShipInfos[1].Item1.transform.parent.LTMoveLocalX(this._strParams.showTargetShipPos.x, this._strParams.showTime).setEase(this._strParams.hideEaseType);
            });
            while (!isWaitTimer2 || !isWaitVoiceFinished2 || !isWaitAnimation4)
            {
                yield return(null);
            }
            isWaitTimer2         = false;
            isWaitVoiceFinished2 = false;
            isWaitAnimation4     = false;
            LeanTween.delayedCall(1f, (Action) delegate
            {
                throw new NotImplementedException("なにこれ");
                // base._003CisWaitTimer_003E__2 = true;
            });
            LeanTween.delayedCall(0.5f, (Action) delegate
            {
                throw new NotImplementedException("なにこれ");
                // ShipUtils.PlayShipVoice(this._listShipInfos[0].Item2, 26, delegate
                //{
                //	base._003CisWaitVoiceFinished_003E__3 = true;
                //});
            }).setOnStart(delegate
            {
                throw new NotImplementedException("なにこれ");
                //this._listShipInfos[0].Item1.transform.LTValue(this._listShipInfos[0].Item1.alpha, 1f, this._strParams.showTime).setEase(this._strParams.showEaseType).setOnUpdate(delegate(float x)
                //{
                //	this._listShipInfos[0].Item1.alpha = x;
                //})
                //	.setOnComplete((Action)delegate
                //	{
                //		base._003CisWaitAnimation_003E__4 = true;
                //	});
                //this._listShipInfos[0].Item1.transform.parent.LTMoveLocalX(this._strParams.showFleetOilerPos.x, this._strParams.showTime).setEase(this._strParams.hideEaseType).setOnStart(delegate
                //{
                //	((Component)this._psFleetOilerMove).SetActive(isActive: true);
                //	this._psFleetOilerMove.Play();
                //});
            });
            while (!isWaitTimer2 || !isWaitVoiceFinished2 || !isWaitAnimation4)
            {
                yield return(null);
            }
            isWaitAnimation4 = false;
            ((Component)_psOilerTargetHeal).transform.LTMoveLocal(_strParams.endOilerTargetParticlePos, _strParams.oilerTargetParticleMoveTime).setDelay(0.5f).setOnStart(delegate
            {
                throw new NotImplementedException("なにこれ");
                // ((Component)this._psOilerTargetHeal).SetActive(isActive: true);
                // this._psOilerTargetHeal.Play();
            })
            .setOnComplete((Action) delegate
            {
                throw new NotImplementedException("なにこれ");
                // base._003CisWaitAnimation_003E__4 = true;
            });
            while (!isWaitAnimation4)
            {
                yield return(null);
            }
            yield return(new WaitForSeconds(0.5f));

            Hide(_listShipInfos[0], _strParams.hideFleetOilerPos);
            Hide(_listShipInfos[1], _strParams.hideTargetShipPos);
            yield return(new WaitForSeconds(0.5f));

            observer.OnNext(value: true);
            observer.OnCompleted();
            uiamf.ClearMessage();
            panel.widgetsAreStatic = true;
            isPlaying = false;
        }