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