Beispiel #1
0
 public EnemyShip(Ship player, Vector3 pos, TgcMesh mesh, Canion canion)
     : base(pos, mesh, canion)
 {
     nombre = "ENEMIGO";
     this.player = player;
     anguloRotacion = FastMath.PI / 2;
     iniciarBarra();
 }
Beispiel #2
0
        public MainCamera(Ship newShip)
        {
            this.ship = newShip;
            camera = GuiController.Instance.ThirdPersonCamera;
            camera.Enable = true;

            wheelPos = input.WheelPos;
            objetive = ship.mesh.Position;
            //Configurar centro al que se mira y distancia desde la que se mira
            camera.setCamera(objetive, ALTURA, DISTANCIA);
        }
Beispiel #3
0
 private void setShip(Ship newShip)
 {
     this.ship = newShip;
 }