Mercurial > hg > Game > Games
comparison Orchestland/Assets/LeapMotion+OVR/Widgets/Scripts/DataBinderExamples/DialToTextBinder.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 using LMWidgets; | |
5 | |
6 public class DialToTextBinder : DataBinderDial { | |
7 | |
8 [SerializeField] | |
9 Text uiText; | |
10 | |
11 override protected void setDataModel(string value) { | |
12 uiText.text = value; | |
13 } | |
14 | |
15 override public string GetCurrentData() { | |
16 return uiText.text; | |
17 } | |
18 } |