summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/OptionBehaviour.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/OptionBehaviour.cs')
-rw-r--r--Client/Assembly-CSharp/OptionBehaviour.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/OptionBehaviour.cs b/Client/Assembly-CSharp/OptionBehaviour.cs
new file mode 100644
index 0000000..f17b80f
--- /dev/null
+++ b/Client/Assembly-CSharp/OptionBehaviour.cs
@@ -0,0 +1,33 @@
+using System;
+using UnityEngine;
+
+public abstract class OptionBehaviour : MonoBehaviour
+{
+ public StringNames Title;
+
+ public Action<OptionBehaviour> OnValueChanged;
+
+ public virtual float GetFloat()
+ {
+ throw new NotImplementedException();
+ }
+
+ public virtual int GetInt()
+ {
+ throw new NotImplementedException();
+ }
+
+ public virtual bool GetBool()
+ {
+ throw new NotImplementedException();
+ }
+
+ public void SetAsPlayer()
+ {
+ PassiveButton[] componentsInChildren = base.GetComponentsInChildren<PassiveButton>();
+ for (int i = 0; i < componentsInChildren.Length; i++)
+ {
+ componentsInChildren[i].gameObject.SetActive(false);
+ }
+ }
+}