Ejemplo n.º 1
0
        public List <UnitTower> supportSrcList = new List <UnitTower>();        //the support towers buffing this tower
        public void SupportBuffTower(UnitTower tower)
        {
            if (!IsSupport())
            {
                Debug.Log("calling non support tower to buff?"); return;
            }

            supportTgtList.Add(tower);
            tower.supportSrcList.Add(this);

            Effect effect = GetEffectOnHit();          //.Clone();

            effect.duration = Mathf.Infinity;
            tower.ApplyEffect(effect);
        }