Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. using UnityEngine;
  2. using HoloToolkit.Unity.InputModule;
  3.  
  4. public class Hider : MonoBehaviour, IInputClickHandler
  5. {
  6. public void OnInputClicked(InputClickedEventData eventData)
  7. {
  8. gameObject.SetActive(false);
  9. }
  10. }
  11.  
  12.  
  13. using System.Collections.Generic;
  14. using UnityEngine;
  15. using HoloToolkit.Unity.InputModule;
  16.  
  17. public class ShowAll : MonoBehaviour, IInputHandler
  18. {
  19. public List<GameObject> _MyGameObjects;
  20.  
  21.  
  22. public void OnInputUp(InputEventData eventData)
  23. {
  24. foreach (GameObject go in _MyGameObjects)
  25. {
  26. go.SetActive(true);
  27. }
  28. }
  29.  
  30. public void OnInputDown(InputEventData eventData)
  31. {
  32. // Up is sufficient for 'Click' or 'AirTap' action.
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement