Example #1
0
        public void NoClip()
        {
            VRC.Player       cplayer          = VRC.PlayerManager.GetCurrentPlayer();
            VRCPlayer        vrcPlayer        = cplayer.vrcPlayer;
            ApiAvatar        apiAvatar        = cplayer.GetApiAvatar();
            APIUser          apiuser          = cplayer.GetAPIUser();
            VRCAvatarManager vrcavatarManager = vrcPlayer.GetVRCAvatarManager();
            Collider         col;

            if (collisiont)
            {
                Console.WriteLine("collision off ");

                col = PlayerManager.GetCurrentPlayer().gameObject.GetComponent <Collider>();



                col.gameObject.SetActive(false);
            }
            else
            {
                Console.WriteLine("collision on ");

                col = PlayerManager.GetCurrentPlayer().gameObject.GetComponent <Collider>();



                col.gameObject.SetActive(true);
            }
        }
Example #2
0
 // Token: 0x06000A89 RID: 2697 RVA: 0x00018574 File Offset: 0x00016774
 public static ApiAvatar GetApiAvatar(this VRCPlayer player)
 {
     return(player.GetVRCAvatarManager().GetApiAvatar());
 }