summaryrefslogtreecommitdiff
path: root/Assets/SampleUI/Scripts/ActiveStateToggler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/SampleUI/Scripts/ActiveStateToggler.cs')
-rwxr-xr-xAssets/SampleUI/Scripts/ActiveStateToggler.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Assets/SampleUI/Scripts/ActiveStateToggler.cs b/Assets/SampleUI/Scripts/ActiveStateToggler.cs
new file mode 100755
index 0000000..d5b7520
--- /dev/null
+++ b/Assets/SampleUI/Scripts/ActiveStateToggler.cs
@@ -0,0 +1,9 @@
+using UnityEngine;
+using System.Collections;
+
+public class ActiveStateToggler : MonoBehaviour {
+
+ public void ToggleActive () {
+ gameObject.SetActive (!gameObject.activeSelf);
+ }
+}