using QSB.Player; using QSB.TransformSync; using UnityEngine.Networking; namespace QSB.Utility { public static class UnetExtensions { public static PlayerInfo GetPlayer(this NetworkConnection connection) { var go = connection.playerControllers[0].gameObject; var controller = go.GetComponent(); return QSBPlayerManager.GetPlayer(controller.netId.Value); } } }