Exemplo n.º 1
0
    private void Awake()
    {
        GameObject cinemachine = GameObject.FindGameObjectWithTag("Cinemachine");

        cinemachine.GetComponent <CinemachineVirtualCamera>().Follow = this.anchor.transform;
        UIcontroller uiController = GameObject.FindGameObjectsWithTag("UIIcon")[0].GetComponent <UIcontroller>();

        uiController.ChangeChara(this);
        if (!gameoveranimator)
        {
            gameoveranimator = GameObject.FindGameObjectsWithTag("UIIcon")[1].GetComponent <Animator>();
        }
    }