Exemplo n.º 1
0
        protected override void InitializeProjectile(MonoProjectile projectile)
        {
            base.InitializeProjectile(projectile);
            var eleProjectile = projectile as MagicalProjectile;

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