Exemple #1
0
 public void ShootAndStun(projectile bullet, Transform target, AnimationCurve arc)
 {
     Physic = Random.Range(MinDmg, MaxDmg);
     Fire   = 0;
     Water  = 0;
     Air    = 0;
     Earth  = 0;
     bullet.Seek(target, Physic, Fire, Water, Air, Earth, AOEradius, arc);
 }
Exemple #2
0
 public void Shoot(projectile bullet, Transform target, AnimationCurve arc)
 {
     Physic = Random.Range(MinDmg, MaxDmg);
     Fire   = Physic * FireParcent;
     Water  = Physic * WaterParcent;
     Air    = Physic * AirParcent;
     Earth  = Physic * EarthParcent;
     Enemy  = target.gameObject.GetComponent <EnemyStats>();
     bullet.Seek(target, Physic, Fire, Water, Air, Earth, AOEradius, arc);
 }