void Start()
 {
     Stats           = this.gameObject.GetComponent <TowerStats>();
     ChemTrailScript = ChemTrail.GetComponent <ChimicalTrail>();
     InvokeRepeating("UpdateTarget", 0f, 0.1f);
     //ChemTrailScript.OverTimeDMG = DMGOverTime / 2f;
 }
Exemplo n.º 2
0
 public void Shoot(ChimicalTrail ChemTrail)
 {
     Physic = Random.Range(MinDmg, MaxDmg);
     Fire   = Physic * FireParcent;
     Water  = Physic * WaterParcent;
     Air    = Physic * AirParcent;
     Earth  = Physic * EarthParcent;
     ChemTrail.Seek(Physic, Fire, Water, Air, Earth, AOEradius);
 }
 void Start()
 {
     ChemTrailScript = ChemTrail.GetComponent <ChimicalTrail>();
 }