protected virtual void PlayShellingSlot(SlotitemModel_Battle[] models, BaseProdLine.AnimationName iName, bool isFriend, float delay)
 {
     if (models != null)
     {
         Observable.Timer(TimeSpan.FromSeconds(delay)).Subscribe(delegate
         {
             ProdShellingSlotLine prodShellingSlotLine = BattleTaskManager.GetPrefabFile().prodShellingSlotLine;
             prodShellingSlotLine.SetSlotData(new List <SlotitemModel_Battle>(models), isFriend);
             prodShellingSlotLine.Play(iName, isFriend, null);
         });
     }
 }
Exemplo n.º 2
0
 protected virtual void PlayShellingSlot(SlotitemModel_Battle model, BaseProdLine.AnimationName iName, bool isFriend, float delay)
 {
     if (model == null)
     {
         return;
     }
     Observable.Timer(TimeSpan.FromSeconds((double)delay)).Subscribe(delegate(long _)
     {
         ProdShellingSlotLine prodShellingSlotLine = BattleTaskManager.GetPrefabFile().prodShellingSlotLine;
         prodShellingSlotLine.SetSlotData(model, isFriend);
         prodShellingSlotLine.Play(iName, isFriend, null);
     });
 }