Rename BazookaSetting.cs to Types/SettingTypes.cs
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class HideIfSettingFalse : MonoBehaviour {
|
public class HideIfSettingFalse : MonoBehaviour {
|
||||||
public BazookaSetting setting;
|
public SettingTypes setting;
|
||||||
public bool reverse;
|
public bool reverse;
|
||||||
|
|
||||||
void Start() {
|
void Start() {
|
||||||
@@ -9,13 +9,13 @@ public class HideIfSettingFalse : MonoBehaviour {
|
|||||||
gameObject.SetActive(value == !reverse);
|
gameObject.SetActive(value == !reverse);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GetSettingValue(BazookaSetting s) {
|
bool GetSettingValue(SettingTypes s) {
|
||||||
var b = BazookaManager.Instance;
|
var b = BazookaManager.Instance;
|
||||||
return s switch {
|
return s switch {
|
||||||
BazookaSetting.FullScreen => b.GetSettingFullScreen() ?? false,
|
SettingTypes.FullScreen => b.GetSettingFullScreen() ?? false,
|
||||||
BazookaSetting.ShowFPS => b.GetSettingShowFPS(),
|
SettingTypes.ShowFPS => b.GetSettingShowFPS(),
|
||||||
BazookaSetting.Vsync => b.GetSettingVsync() ?? false,
|
SettingTypes.Vsync => b.GetSettingVsync() ?? false,
|
||||||
BazookaSetting.HideSocials => b.GetSettingHideSocials() ?? false,
|
SettingTypes.HideSocials => b.GetSettingHideSocials() ?? false,
|
||||||
_ => 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,
|
FullScreen,
|
||||||
ShowFPS,
|
ShowFPS,
|
||||||
Reference in New Issue
Block a user