Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        manager = GameObject.FindGameObjectWithTag("LevelManager").GetComponent<GhostSwitchManager>();
		dollManager = GameObject.FindGameObjectWithTag("LevelManager").GetComponent<DollManager>();
		doll = GameObject.FindGameObjectWithTag ("Player");

    }
Ejemplo n.º 2
0
	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 ());
	}