Exemplo n.º 1
0
    public virtual void Update(BuffUpdateType type)
    {
        switch (type)
        {
        case BuffUpdateType.EndBattle:
            remainTurn--;
            break;

        default:
            break;
        }
    }
Exemplo n.º 2
0
 public void UpdateBuff(BuffUpdateType updateType)
 {
     foreach (Buff b in buffList)
     {
         b.Update(updateType);
     }
     if (updateType == BuffUpdateType.EndBattle)
     {
         for (int i = buffList.Count - 1; i >= 0; i--)
         {
             if (!buffList[i].IsActive)
             {
                 buffList.RemoveAt(i);
             }
         }
     }
 }