Merged difficulty controls
This commit is contained in:
@@ -406,6 +406,7 @@ GameObject:
|
||||
m_Component:
|
||||
- component: {fileID: 201752381}
|
||||
- component: {fileID: 201752382}
|
||||
- component: {fileID: 201752383}
|
||||
m_Layer: 5
|
||||
m_Name: DifficultySlider
|
||||
m_TagString: Untagged
|
||||
@@ -482,10 +483,23 @@ MonoBehaviour:
|
||||
m_MinValue: 3
|
||||
m_MaxValue: 5
|
||||
m_WholeNumbers: 0
|
||||
m_Value: 3
|
||||
m_Value: 4
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &201752383
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 201752380}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 985fe7203793456f84cbf0526b831a3a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
DifficultySlider: {fileID: 201752382}
|
||||
--- !u!1 &217457338
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace InterfaceOff.MainMenu
|
||||
{
|
||||
public class DifficultyManager : MonoBehaviour
|
||||
{
|
||||
public static float DifficultyMultiplier { get; private set; } = 0.75f;
|
||||
public static float DifficultyMultiplier { get; private set; } = 1f;
|
||||
public static float DifficultyEffect => Mathf.Pow(f: DifficultyMultiplier, p: 2);
|
||||
|
||||
[SerializeField] private Slider DifficultySlider;
|
||||
|
||||
Reference in New Issue
Block a user