void Start() { camaraPrincipal = GameObject.Find("Main Camera").GetComponent <CamaraController>(); sonidos = GameObject.Find("Main Camera").GetComponent <SonidosJuego>(); puerta = GameObject.Find("Puerta").GetComponent <PuertaController>(); elegirDestino(); }
// Start is called before the first frame update void Start() { camara = GameObject.Find("Main Camera").GetComponent <CamaraController>(); sprite = GetComponent <Image>(); sonidoCamara = GameObject.Find("Main Camera").GetComponent <SonidosJuego>(); }
// Start is called before the first frame update void Start() { coco = GameObject.Find("Coco").GetComponent <CocoControl>(); pato = GameObject.Find("Pato").GetComponent <PatoControl>(); camara = GameObject.Find("Main Camera").GetComponent <CamaraController>(); cambiaSprite = GameObject.Find("Lugares").GetComponent <SpriteHabitaciones>(); presenciaEnemigos = GetComponent <PresenciaEnemigos>(); }
private void Awake() { _scoreManager = FindObjectOfType <ScoreManager>(); _livesManager = FindObjectOfType <LivesManager>(); _timeManager = FindObjectOfType <TimeManager>(); _pillsManager = FindObjectOfType <PillsManager>(); _groundController = FindObjectOfType <GroundController>(); _ballController = FindObjectOfType <BallController>(); _uIController = FindObjectOfType <UIController>(); _cameraController = FindObjectOfType <CamaraController>(); // Load only if not already loaded if (_instance == null) { _instance = this; } else { Destroy(this); } }