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"); }
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"); }
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"); }
private void Awake() { client = ClientManager.client; networkEntity = GetComponent <NetworkEntity>(); networkEntity.OnRegisterCallback += Initialize; }