summaryrefslogtreecommitdiff
path: root/Thronefall_1_0/Decompile/Checkbox.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Thronefall_1_0/Decompile/Checkbox.cs')
-rw-r--r--Thronefall_1_0/Decompile/Checkbox.cs29
1 files changed, 0 insertions, 29 deletions
diff --git a/Thronefall_1_0/Decompile/Checkbox.cs b/Thronefall_1_0/Decompile/Checkbox.cs
deleted file mode 100644
index 40e1344..0000000
--- a/Thronefall_1_0/Decompile/Checkbox.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using UnityEngine;
-using UnityEngine.Events;
-
-public class Checkbox : MonoBehaviour
-{
- public UnityEvent onToggle = new UnityEvent();
-
- public bool state;
-
- public GameObject checkObj;
-
- public void SetState(bool active)
- {
- state = active;
- UpdateDisplay();
- }
-
- public void Toggle()
- {
- state = !state;
- UpdateDisplay();
- onToggle.Invoke();
- }
-
- private void UpdateDisplay()
- {
- checkObj.SetActive(state);
- }
-}