private void Awake() { uiSelector = FindObjectOfType <UI_Selector>(); cameraControl = FindObjectOfType <CameraController>(); surface_Manager = surfaceManager; }
// Start is called before the first frame update void Awake() { textoVida = this.transform.GetChild(0).gameObject; textoMonedas = this.transform.GetChild(1).gameObject; scriptVida = textoVida.GetComponent <MostrarVida>(); scriptMonedas = textoMonedas.GetComponent <MostrarMonedas>(); uiSelector = this.transform.GetChild(2).gameObject; scriptUISelector = uiSelector.GetComponent <UI_Selector>(); }
private void Awake() { ui_Selector = UI_Controller.Get_UI_Selector(); }