IControllerVisual.cs 1.4 KB

123456789101112131415161718192021222324252627282930
  1. /****************************************************************************
  2. * Copyright 2019 Nreal Techonology Limited. All rights reserved.
  3. *
  4. * This file is part of NRSDK.
  5. *
  6. * https://www.nreal.ai/
  7. *
  8. *****************************************************************************/
  9. namespace NRKernal
  10. {
  11. using System.Collections;
  12. using System.Collections.Generic;
  13. using UnityEngine;
  14. /// <summary>
  15. /// The interface contains methods for controller to update virtual controller visuals, and to
  16. /// show the feed back of user interactivation. </summary>
  17. public interface IControllerVisual
  18. {
  19. /// <summary> Sets an active. </summary>
  20. /// <param name="isActive"> True if is active, false if not.</param>
  21. void SetActive(bool isActive);
  22. /// <summary> Updates the visual described by state. </summary>
  23. /// <param name="state"> The state.</param>
  24. void UpdateVisual(ControllerState state);
  25. /// <summary> Destroys the self. </summary>
  26. void DestroySelf();
  27. }
  28. }