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(); }
public void UnregisterAltitud(MedidorDeAltitud _medidor) { _medidor.onMovement -= ShowAlturas; _medidor.onMovement -= PrintAnything; }