HandEnableDisable.cs 370 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace Leap.Unity
  3. {
  4. public class HandEnableDisable : HandTransitionBehavior
  5. {
  6. protected override void Awake()
  7. {
  8. base.Awake();
  9. base.gameObject.SetActive(false);
  10. }
  11. protected override void HandReset()
  12. {
  13. base.gameObject.SetActive(true);
  14. }
  15. protected override void HandFinish()
  16. {
  17. base.gameObject.SetActive(false);
  18. }
  19. }
  20. }