blob: f17b80f9e63ebc8bbe0f29a13f99d8f07e950593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
}
}
}
|