Example #1
0
    void Update()
    {
        // only hide while in first person mode
        bool firstPerson = look.InFirstPerson();

        HideMeshes(firstPerson);
        DisableDepthCheck(firstPerson);
    }
Example #2
0
    void Update()
    {
        if (!isLocalPlayer)
        {
            return;
        }
        bool firstPerson = look.InFirstPerson();

        HideMeshes(firstPerson);
        DisableDepthCheck(firstPerson);
    }