Exemplo n.º 1
0
 public void Init(float withDistance, float withSpeed, int withDamage, ProjectileTargetType withTargetType, Vector3 targetPos)
 {
     _distance   = withDistance;
     _targetType = withTargetType;
     _speed      = withSpeed;
     _targetPos  = targetPos;
     _damage     = withDamage;
 }
Exemplo n.º 2
0
 public void Init(float withDistance, float withSpeed, int withDamage, ProjectileTargetType withTargetType, Unit enemyUnit)
 {
     _distance   = withDistance;
     _targetType = withTargetType;
     _speed      = withSpeed;
     _targetPos  = enemyUnit.transform.position;
     _enemyUnit  = enemyUnit;
     _damage     = withDamage;
 }