using System.Collections;
using System.Collections.Generic;
using UnityEngine.SceneManagement;
public class ObjectiveHandler : MonoBehaviour
public GameObject vinylOne, vinylTwo, vinylThree, vinylFour, vinylFive, vinylSix, vinylSeven, vinylEight, vinylNine, vinylTen;
public GameObject player;
public SoundManager soundManager;
public UIManager uIManager;
public GameObject creditsMenu;
public GameObject blurScreen;
public UINavigation uINavigation;
public GameObject fireWorks;
vinylOne.SetActive(false);
vinylTwo.SetActive(false);
vinylThree.SetActive(false);
vinylFour.SetActive(false);
vinylFive.SetActive(false);
vinylSix.SetActive(false);
vinylSeven.SetActive(false);
vinylEight.SetActive(false);
vinylNine.SetActive(false);
vinylTen.SetActive(false);
fireWorks.SetActive(false);
blurScreen.SetActive(true);
Debug.Log("lookjhasdköjihsdfoiuh");
uIManager.OpenMenuPanel(creditsMenu);
public void OnTriggerEnter(Collider other)
if (other.tag == "Player")
var collectible = other.GetComponentInParent<Collectible>();
var audioTrack = GetComponent<AudioHandler>();
soundManager = GameManager.Instance.GetComponent<SoundManager>();
soundManager.Objectives();
if (collectible.first == true)
vinylOne.SetActive(true);
vinylOne.GetComponent<Animator>().SetBool("HasTurnIn", true);
if (collectible.second == true)
vinylTwo.SetActive(true);
vinylTwo.GetComponent<Animator>().SetBool("HasTurnIn", true);
if (collectible.third == true)
vinylThree.SetActive(true);
vinylThree.GetComponent<Animator>().SetBool("HasTurnIn", true);
if (collectible.fourth == true)
vinylFour.SetActive(true);
vinylFour.GetComponent<Animator>().SetBool("HasTurnIn", true);
if (collectible.fifth == true)
vinylFive.SetActive(true);
vinylFive.GetComponent<Animator>().SetBool("HasTurnIn", true);
if (collectible.sixth == true)
vinylSix.SetActive(true);
vinylSix.GetComponent<Animator>().SetBool("HasTurnIn", true);
if (collectible.seventh == true)
vinylSeven.SetActive(true);
vinylSeven.GetComponent<Animator>().SetBool("HasTurnIn", true);
fireWorks.SetActive(true);