Exemple #1
0
        public Projectile(WeaponStats stats, Creep targetCreep, Vector2 startPoint, TowerTypes parentTowerType)
        {
            Stats       = stats.GetCopy();
            TargetCreep = targetCreep;

            CenterPosition = startPoint;

            this.type      = SelectTypeBasedOnTowerType(parentTowerType);
            this.TextureID = TowerFactory.GetProjectileMediaID(type);

            this.numFrames = ProjectileDefinitions.ProjectileStats[type].NumFrames;
        }