Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using HoloToolkit.Unity.InputModule;
- public class Hider : MonoBehaviour, IInputClickHandler
- {
- public void OnInputClicked(InputClickedEventData eventData)
- {
- gameObject.SetActive(false);
- }
- }
- using System.Collections.Generic;
- using UnityEngine;
- using HoloToolkit.Unity.InputModule;
- public class ShowAll : MonoBehaviour, IInputHandler
- {
- public List<GameObject> _MyGameObjects;
- public void OnInputUp(InputEventData eventData)
- {
- foreach (GameObject go in _MyGameObjects)
- {
- go.SetActive(true);
- }
- }
- public void OnInputDown(InputEventData eventData)
- {
- // Up is sufficient for 'Click' or 'AirTap' action.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement