summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/UI/BattleAttackPress.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/UI/BattleAttackPress.cs')
-rw-r--r--Client/Assets/Scripts/UI/BattleAttackPress.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/UI/BattleAttackPress.cs b/Client/Assets/Scripts/UI/BattleAttackPress.cs
new file mode 100644
index 00000000..775dc520
--- /dev/null
+++ b/Client/Assets/Scripts/UI/BattleAttackPress.cs
@@ -0,0 +1,21 @@
+using UnityEngine;
+using System.Collections;
+
+public class BattleAttackPress : MonoBehaviour
+{
+
+ private GameObject fx;
+ // Use this for initialization
+ void Start ()
+ {
+ fx = transform.parent.Find("glow").gameObject;
+ }
+
+ void OnPress(bool state)
+ {
+ if(!state)
+ {
+ fx.SetActive(false);
+ }
+ }
+}