RiftMayhem/Assets/Scripts/UI/GameOptionsController.cs
Pedro Gomes e806551093 Game options UI, Game difficulty Options & items
fix burst of hope
updated sell values for items
updated jobs reward increases based on difficulty
updated difficulty settings
2024-07-07 21:47:56 +01:00

34 lines
738 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameOptionsController : MonoBehaviour
{
[SerializeField]
public List<GameObject> otherUIs;
[SerializeField] private GameObject GameOptionsUI;
private void Start()
{
GameOptionsUI.SetActive(false);
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Escape)) ToggleGameOptionsUI();
}
private void ToggleGameOptionsUI()
{
GameOptionsUI.SetActive(!GameOptionsUI.activeSelf);
if (!GameOptionsUI.activeSelf) return;
for (int i = 0; i < otherUIs.Count; i++)
{
otherUIs[i].SetActive(false);
}
}
}