Пример #1
0
 private void PlaySinking()
 {
     if (_queFriedShipModel.Count != 0)
     {
         ProdSinking prodSinking = BattleTaskManager.GetPrefabFile().prodSinking;
         prodSinking.SetSinkingData(_queFriedShipModel.Dequeue());
         prodSinking.Play(delegate
         {
             ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction();
             observerAction.Executions();
             Observable.NextFrame().Subscribe(delegate
             {
                 PlaySinking();
             });
         });
     }
     else
     {
         OnFinished();
     }
 }
 private void PlaySinking()
 {
     if (this._queFriedShipModel.get_Count() != 0)
     {
         ProdSinking prodSinking = BattleTaskManager.GetPrefabFile().prodSinking;
         prodSinking.SetSinkingData(this._queFriedShipModel.Dequeue());
         prodSinking.Play(delegate
         {
             ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction();
             observerAction.Executions();
             Observable.NextFrame(FrameCountType.Update).Subscribe(delegate(Unit _)
             {
                 this.PlaySinking();
             });
         });
     }
     else
     {
         this.OnFinished();
     }
 }