////////START/////// void Start() { audiocontroller_aux = FindObjectOfType <audiocontroller>(); adlocal = GetComponent <Adcaller>(); cambiador_fades = FindObjectOfType <changer_fades>(); //Componenetes Iniciales del juego puntos_encript = gameObject.AddComponent(typeof(puntitoscrip)) as puntitoscrip; vidas_encript = gameObject.AddComponent(typeof(vidasscrip)) as vidasscrip; StartCoroutine(Menu()); }
// Start is called before the first frame update void Start() { gamecontrol_aux = GameObject.Find("GameController"); ads_aux = gamecontrol_aux.GetComponent <Adcaller>(); ads_aux2 = gamecontrol_aux.GetComponent <Adcaller_with_plugin>(); if (gamecontrol_aux == null) { Debug.Log("gamecontrol_aux Es NULO"); } if (ads_aux == null) { //Debug.Log("ADS Es NULO"); } }