public void RemoveBoeuf(BattleBoeuf _oldBoeuf) { effectiveBoeufs.Remove(_oldBoeuf); BuffFeedback bf = GetComponentInChildren <BuffFeedback>(); if (bf != null) { bf.UpdateCurrentBoeufsList(effectiveBoeufs); } }
public void UpdateActiveBoeufs() { for (int i = 0; i < effectiveBoeufs.Count; i++) { effectiveBoeufs[i].Duration--; if (effectiveBoeufs[i].Duration == 0) { effectiveBoeufs.Remove(effectiveBoeufs[i]); } } BuffFeedback bf = GetComponentInChildren <BuffFeedback>(); if (bf != null) { bf.UpdateCurrentBoeufsList(effectiveBoeufs); } }