Esempio n. 1
0
 void Start()
 {
     //TextLanzamientos
     rigidbody      = GetComponent <Rigidbody2D>();
     spriteRenderer = GetComponent <SpriteRenderer>();
     gm             = GameObject.Find("GameManager").GetComponent <GameManager>();
     gameObject.AddComponent <MedidorDeAltitud>();
     medidorDeAltitud = GetComponent <MedidorDeAltitud>();
     this.gameObject.AddComponent <ZoomCamara>();
     this.gameObject.AddComponent <Lanzamiento>();
     gameObject.AddComponent <DireccionBotella>();
     zoomCamara  = GetComponent <ZoomCamara>();
     lanzamiento = GetComponent <Lanzamiento>();
     zoomCamara.IniciarZoom(this.gameObject, zoom, zoomMax, zoomMin, velZoom);
     lanzamiento.IniciarLanzamiento();
     medidorDeAltitud.IniciarMedidorDeAltitud();
 }
Esempio n. 2
0
 public void UnregisterAltitud(MedidorDeAltitud _medidor)
 {
     _medidor.onMovement -= ShowAlturas;
     _medidor.onMovement -= PrintAnything;
 }