Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/BeautifyEffect/Demo.cs
2026-02-21 16:45:37 +08:00

31 lines
757 B
C#

using UnityEngine;
namespace BeautifyEffect
{
public class Demo : MonoBehaviour
{
private void OnGUI()
{
Rect position = new Rect(10f, 10f, Screen.width - 20, 30f);
GUI.Label(position, "Move around with WASD or cursor keys, mouse to look, T or left mouse button to toggle beautify on/off.");
position = new Rect(10f, 30f, Screen.width - 20, 30f);
if (Beautify.instance.enabled)
{
GUI.Label(position, "BEAUTIFY EFFECT ON => Crisp mountains, no banding on sky, color enhancement.");
}
else
{
GUI.Label(position, "BEAUTIFY EFFECT OFF");
}
}
private void Update()
{
if (Input.GetKeyDown(KeyCode.T) || Input.GetMouseButtonDown(0))
{
Beautify.instance.enabled = !Beautify.instance.enabled;
}
}
}
}