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