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