예제 #1
0
        public void RemoveBoeuf(BattleBoeuf _oldBoeuf)
        {
            effectiveBoeufs.Remove(_oldBoeuf);
            BuffFeedback bf = GetComponentInChildren <BuffFeedback>();

            if (bf != null)
            {
                bf.UpdateCurrentBoeufsList(effectiveBoeufs);
            }
        }
예제 #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);
            }
        }