public void LaunchSecondaryProjectile() { spawnedProjectile = pools[1].RemoveFromPool(); spawnedProjectile.Transform.position = attachmentPointTransform.position; spawnedProjectile.Transform.rotation = attachmentPointTransform.parent.rotation; spawnedProjectile.Activate(); }
public override void Cast() { // Debug.Log(AbilityInformation.GeneraInformation.Name + " is casting!"); Transform casterTransform = Caster.transform; base.Cast(); projectile = projectilePool.RemoveFromPool(); projectile.Transform.position = casterTransform.position; projectile.Transform.rotation = casterTransform.rotation; projectile.Activate(); }