Пример #1
0
        public static Player GetSelectedPlayer(this QuickMenu instance)
        {
            var APIUser       = instance.field_Private_APIUser_0;
            var playerManager = GeneralWrappers.GetPlayerManager();

            return(playerManager.GetPlayer(APIUser.id));
        }
Пример #2
0
        public static Player GetPlayerByRayCast(this RaycastHit RayCast)
        {
            var gameObject = RayCast.transform.gameObject;

            return(GetPlayer(GeneralWrappers.GetPlayerManager(), VRCPlayerApi.GetPlayerByGameObject(gameObject).playerId));
        }