Rename BazookaSetting.cs to Types/SettingTypes.cs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class HideIfSettingFalse : MonoBehaviour {
|
||||
public BazookaSetting setting;
|
||||
public SettingTypes setting;
|
||||
public bool reverse;
|
||||
|
||||
void Start() {
|
||||
@@ -9,13 +9,13 @@ public class HideIfSettingFalse : MonoBehaviour {
|
||||
gameObject.SetActive(value == !reverse);
|
||||
}
|
||||
|
||||
bool GetSettingValue(BazookaSetting s) {
|
||||
bool GetSettingValue(SettingTypes s) {
|
||||
var b = BazookaManager.Instance;
|
||||
return s switch {
|
||||
BazookaSetting.FullScreen => b.GetSettingFullScreen() ?? false,
|
||||
BazookaSetting.ShowFPS => b.GetSettingShowFPS(),
|
||||
BazookaSetting.Vsync => b.GetSettingVsync() ?? false,
|
||||
BazookaSetting.HideSocials => b.GetSettingHideSocials() ?? false,
|
||||
SettingTypes.FullScreen => b.GetSettingFullScreen() ?? false,
|
||||
SettingTypes.ShowFPS => b.GetSettingShowFPS(),
|
||||
SettingTypes.Vsync => b.GetSettingVsync() ?? false,
|
||||
SettingTypes.HideSocials => b.GetSettingHideSocials() ?? false,
|
||||
_ => false
|
||||
};
|
||||
}
|
||||
|
||||
8
Assets/Scripts/Types.meta
Normal file
8
Assets/Scripts/Types.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5df5d134be18d57cd9b576a8a93d29ba
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,4 +1,4 @@
|
||||
public enum BazookaSetting
|
||||
public enum SettingTypes
|
||||
{
|
||||
FullScreen,
|
||||
ShowFPS,
|
||||
Reference in New Issue
Block a user