Esempio n. 1
0
 public void LaunchSecondaryProjectile()
 {
     spawnedProjectile = pools[1].RemoveFromPool();
     spawnedProjectile.Transform.position = attachmentPointTransform.position;
     spawnedProjectile.Transform.rotation = attachmentPointTransform.parent.rotation;
     spawnedProjectile.Activate();
 }
Esempio n. 2
0
        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();
        }