From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- Client/Assembly-CSharp/OptionBehaviour.cs | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Client/Assembly-CSharp/OptionBehaviour.cs (limited to 'Client/Assembly-CSharp/OptionBehaviour.cs') 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 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(); + for (int i = 0; i < componentsInChildren.Length; i++) + { + componentsInChildren[i].gameObject.SetActive(false); + } + } +} -- cgit v1.1-26-g67d0