Format scripts
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class HideIfSettingFalse : MonoBehaviour {
|
||||
public class HideIfSettingFalse : MonoBehaviour
|
||||
{
|
||||
public SettingTypes setting;
|
||||
public bool reverse;
|
||||
|
||||
void Start() {
|
||||
void Start()
|
||||
{
|
||||
bool value = GetSettingValue(setting);
|
||||
gameObject.SetActive(value == !reverse);
|
||||
}
|
||||
|
||||
bool GetSettingValue(SettingTypes s) {
|
||||
bool GetSettingValue(SettingTypes s)
|
||||
{
|
||||
var b = BazookaManager.Instance;
|
||||
return s switch {
|
||||
return s switch
|
||||
{
|
||||
SettingTypes.FullScreen => b.GetSettingFullScreen(),
|
||||
SettingTypes.ShowFPS => b.GetSettingShowFPS(),
|
||||
SettingTypes.Vsync => b.GetSettingVsync(),
|
||||
|
||||
Reference in New Issue
Block a user