Esempio n. 1
0
        public void RemoveProjectile( Projectile projectile )
        {
            Components.Remove( projectile );
            Projectiles.Remove( projectile );

            projectile.Dispose();
        }
Esempio n. 2
0
        public void AddProjectile( Vector3 pos, Vector3 direction, float rotation )
        {
            Projectile projectile = new Projectile( this, Cube, pos, direction, rotation );
            Projectiles.Add( projectile );
            Components.Add( projectile );

            projectile.Initialize();
        }