Ejemplo n.º 1
0
        public LinearProjectile Shoot(int damage, Vector3 startPosition, Utility.Direction dir)
        {
            LinearProjectile projectile = Instantiate(this, startPosition, Quaternion.identity);

            projectile.direction = dir;
            projectile.SetLifeTime(projectile.lifeTime);
            projectile.Damage = damage;
            return(projectile);
        }
Ejemplo n.º 2
0
 protected override void Start()
 {
     base.Start();
     projectileCopy = projectile;
     fieryPoints    = Utility.GetChildrensWithTag(transform, "FieryPoint");
 }