// Use this for initialization void Start() { GameObject gamecamera = GameObject.FindGameObjectWithTag("MainCamera"); currentAudioSource = (AudioSource)gamecamera.GetComponent <AudioSource>(); blockCamera = (BlockCamera)gameObject.GetComponent("BlockCamera"); boss = (BossGiantRobot)GameObject.FindGameObjectWithTag("Boss").GetComponent("BossGiantRobot"); isPlaying = false; }
// Use this for initialization void Start() { isCalledEnemies = false; unlockCamera = false; isEnd = false; numEnemiesCreated = 0; gamecamera = GameObject.FindGameObjectWithTag("MainCamera"); blockCamera = (BlockCamera)gameObject.GetComponent("BlockCamera"); enemiesCreated = new System.Collections.Generic.List <GameObject>(); //------------- Calcular ancho de la cámara. widthCamera = UserInterfaceGraphics.getWidthCamera() / 2; }