Example #1
0
 public BaseTeleportProcessor(TeleportUdpTransport transport)
 {
     _socketStarted             = false;
     _transport                 = transport;
     _incomingMessageProcessors = new Dictionary <byte, Action <EndPoint, TeleportReader> >();
     _unityHelper               = null;
 }
Example #2
0
        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;
        }