Ejemplo n.º 1
0
        private void OnEnable()
        {
            client = (UnityClient)serializedObject.targetObject;

            host                 = serializedObject.FindProperty("host");
            port                 = serializedObject.FindProperty("port");
            autoConnect          = serializedObject.FindProperty("autoConnect");
            invokeFromDispatcher = serializedObject.FindProperty("invokeFromDispatcher");
            sniffData            = serializedObject.FindProperty("sniffData");

            objectCacheSettings = serializedObject.FindProperty("objectCacheSettings");
        }
Ejemplo n.º 2
0
        void OnEnable()
        {
            client = ((UnityClient)serializedObject.targetObject);

            address              = client.Address.ToString();
            port                 = serializedObject.FindProperty("port");
            ipVersion            = serializedObject.FindProperty("ipVersion");
            autoConnect          = serializedObject.FindProperty("autoConnect");
            invokeFromDispatcher = serializedObject.FindProperty("invokeFromDispatcher");
            sniffData            = serializedObject.FindProperty("sniffData");

            objectCacheSettings = serializedObject.FindProperty("objectCacheSettings");
        }
Ejemplo n.º 3
0
        void OnEnable()
        {
            client = ((UnityClient)serializedObject.targetObject);

            address     = client.Address.ToString();
            port        = serializedObject.FindProperty("port");
            ipVersion   = serializedObject.FindProperty("ipVersion");
            autoConnect = serializedObject.FindProperty("autoConnect");
            invokeFromDispatcher
                      = serializedObject.FindProperty("invokeFromDispatcher");
            sniffData = serializedObject.FindProperty("sniffData");

            maxCachedWriters               = serializedObject.FindProperty("maxCachedWriters");
            maxCachedReaders               = serializedObject.FindProperty("maxCachedReaders");
            maxCachedMessages              = serializedObject.FindProperty("maxCachedMessages");
            maxCachedSocketAsyncEventArgs  = serializedObject.FindProperty("maxCachedSocketAsyncEventArgs");
            maxCachedActionDispatcherTasks = serializedObject.FindProperty("maxCachedActionDispatcherTasks");
        }
Ejemplo n.º 4
0
 private void Awake()
 {
     client        = ClientManager.client;
     networkEntity = GetComponent <NetworkEntity>();
     networkEntity.OnRegisterCallback += Initialize;
 }