private void Init() { if (Network == null) { Debug.LogError("Network is null"); return; } _aheiLibrary = Antilatency.HardwareExtensionInterface.Library.load(); if (_aheiLibrary == null) { Debug.LogError("Failed to create hardware extension interface library"); return; } }
protected virtual void OnDestroy() { StopAllCoroutines(); if (_aheiCotask != null) { _aheiCotask.Dispose(); _aheiCotask = null; } if (_aheiLibrary != null) { _aheiLibrary.Dispose(); _aheiLibrary = null; } }