public void customupdate()
 {
     PlayerApiref.EnablePickups(enablepickups.isOn);
     if (!changeapi)
     {
         PlayerApiref.Immobilize(immobilize.isOn);
     }
 }
示例#2
0
        private bool TestOtherPlayerSettings(VRCPlayerApi player)
        {
            if (player.isLocal)
            {
                Debug.Log("Player Immobilize");
                player.Immobilize(true);
                player.Immobilize(false);
            }

            Debug.Log("Player EnablePickups");
            player.EnablePickups(true);
            player.EnablePickups(false);

            Debug.Log("PlayHapticEventInHand");
            player.PlayHapticEventInHand(VRC_Pickup.PickupHand.Right, 1, .5f, .5f);

            return(true);
        }