Ejemplo n.º 1
0
        public void Dispose()
        {
            _deviceManager.devicesChanged -= OnDevicesUpdated;
            _avatarManager.avatarChanged  -= OnAvatarChanged;

            _leftHandAnimAction.Dispose();
            _rightHandAnimAction.Dispose();
        }
        public void Dispose()
        {
            _deviceManager.deviceAdded            -= OnDevicesUpdated;
            _deviceManager.deviceRemoved          -= OnDevicesUpdated;
            _deviceManager.deviceTrackingAcquired -= OnDevicesUpdated;
            _deviceManager.deviceTrackingLost     -= OnDevicesUpdated;

            _leftHandAnimAction.Dispose();
            _rightHandAnimAction.Dispose();
        }
 private void OnDestroy()
 {
     _leftHandAnimAction?.Dispose();
     _rightHandAnimAction?.Dispose();
 }