public virtual void Update(BuffUpdateType type) { switch (type) { case BuffUpdateType.EndBattle: remainTurn--; break; default: break; } }
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); } } } }