Exemplo n.º 1
0
        public void RemoveBoeuf(BattleBoeuf _oldBoeuf)
        {
            effectiveBoeufs.Remove(_oldBoeuf);
            BuffFeedback bf = GetComponentInChildren <BuffFeedback>();

            if (bf != null)
            {
                bf.UpdateCurrentBoeufsList(effectiveBoeufs);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }