Beispiel #1
0
        protected override void InitializeProjectile(MonoProjectile projectile)
        {
            base.InitializeProjectile(projectile);
            var eleProjectile = projectile as MagicalProjectile;

            if (eleProjectile == null)
            {
                return;
            }
            eleProjectile.Element = Element;
        }
Beispiel #2
0
 protected virtual void InitializeProjectile(MonoProjectile projectile)
 {
     projectile.transform.position = firePoint.position;
     projectile.transform.rotation = firePoint.rotation;
     projectile.Velocity           = firePoint.forward * parameter.LaunchForce;
 }