public override void Cast(Actor user) { GameObject gameObject = Instantiate(_gameObject, user.transform.position + _spawnOffset, Quaternion.identity); Projectiles projectiles = gameObject.GetComponent <Projectiles>(); projectiles.InitDirection((nextDestinationToProject - user.transform.position).normalized); projectiles.SetTargets(GetTargetSet()); projectiles.SetFlyOrGround(_flyOrGround); projectiles.AddDamage(user.GetBaseStats().AttackDamage + GetDamage()); }