Esempio n. 1
0
    void Start()
    {
        GameObject VCam = GameObject.FindGameObjectWithTag(TagAndLayer.Tag.VCam);

        VCam.GetComponent <CinemachineVirtualCamera>().Follow = _transform;

        UtilMethods.IgnoreLayerCollisionByName(TagAndLayer.Layer.Player,
                                               TagAndLayer.Layer.Enemy, false);

        GameManager.Instance.Player = this;
    }