public static Player GetSelectedPlayer(this QuickMenu instance) { var APIUser = instance.field_Private_APIUser_0; var playerManager = GeneralWrappers.GetPlayerManager(); return(playerManager.GetPlayer(APIUser.id)); }
public static Player GetPlayerByRayCast(this RaycastHit RayCast) { var gameObject = RayCast.transform.gameObject; return(GetPlayer(GeneralWrappers.GetPlayerManager(), VRCPlayerApi.GetPlayerByGameObject(gameObject).playerId)); }