comparison Orchestland/Assets/LeapMotion/Widgets/Scripts/Dial/DatePickerHideVolume.cs @ 1:f7675884f2a1

Add Orchestland project
author Daiki OYAKAWA <e135764@ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2015 23:09:20 +0900
parents
children
comparison
equal deleted inserted replaced
0:347d21cdfc22 1:f7675884f2a1
1 using UnityEngine;
2 using UnityEngine.UI;
3 using System.Collections;
4
5 public class DatePickerHideVolume : MonoBehaviour {
6
7 // Use this for initialization
8 void Start () {
9
10 }
11
12 void OnTriggerEnter(Collider other) {
13 Text text = other.GetComponentInChildren<Text> ();
14 if (text == null) { return; }
15 text.enabled = false;
16 }
17
18 void OnTriggerExit(Collider other) {
19 Text text = other.GetComponentInChildren<Text> ();
20 if (text == null) { return; }
21 text.enabled = true;
22 }
23
24 // Update is called once per frame
25 void Update () {
26
27 }
28 }