void Start () { musicManager = FinalSceneMusicManager.getInstance (); musicManager.playTrack (0); //E1 ghostSwitchManager = GetComponent<GhostSwitchManager> (); maincam = GameObject.FindGameObjectWithTag ("MainCamera"); textBoxManager = FindObjectOfType < TextBoxManager >(); player = GameObject.FindGameObjectWithTag ("Player"); playerAnim = player.GetComponent<Animator>(); playerController = player.GetComponent<Controller2> (); puppetMasterAnim = puppetMaster.GetComponent<Animator> (); puppetMasterFace("forward"); puppetMaster.SetActive (false); isNameUpdated = false; humanAnim = human.GetComponent<Animator> (); humanController = human.GetComponent<Controller2> (); human.layer = 0; //TESTING //puppetMasterAnim.SetBool ("hasSoul", true); //StartCoroutine (temp ()); //StartCoroutine (fifthTrigger ()); }
void Awake() { if (instance != null) { FinalSceneMusicManager temp = instance; Destroy (temp); //Debug.LogError("Multiple instances of FinalSceneMusicManager!"); } instance = this; }