private void CrearTorreta(TGCVector3 pos, TGCVector3 rotation)
        {
            Torreta torreta = new Torreta(target, pos, rotation);

            VariablesGlobales.managerEnemigos.AgregarElemento(torreta);
            VariablesGlobales.postProcess.AgregarElemento(torreta);
        }
 private void instanciarTorretas()
 {
     this.posicionesTorretas.
     ForEach(delegate(TGCVector3 tor) {
         Torreta torreta = new Torreta(mediaDir, tor, nave);
         GameManager.Instance.AgregarRenderizable(torreta);
     });
 }
Beispiel #3
0
        public CollisionObject AgregarTorreta(Torreta torreta, TGCVector3 size)
        {
            CollisionObject torretaCollision = CrearCollisionObject(size);

            collisionWorld.AddCollisionObject(torretaCollision);
            listaTorretas.Add(torretaIdCount, torreta);
            torretaCollision.UserIndex = torretaIdCount;
            torretaIdCount            += 2;
            return(torretaCollision);
        }