public BaseTeleportProcessor(TeleportUdpTransport transport) { _socketStarted = false; _transport = transport; _incomingMessageProcessors = new Dictionary <byte, Action <EndPoint, TeleportReader> >(); _unityHelper = null; }
protected void StartUnityHelper(string name) { var go = new UnityEngine.GameObject(name); go.hideFlags = UnityEngine.HideFlags.HideAndDontSave; _unityHelper = go.AddComponent <TeleportUnityHelper>(); _unityHelper.Initialize(UnityUpdate); _nextHandleIncomingTime = 0; }