diff --git a/Assets/Scripts/Interface/Terminal.cs b/Assets/Scripts/Interface/Terminal.cs index 0e012fa..624a401 100644 --- a/Assets/Scripts/Interface/Terminal.cs +++ b/Assets/Scripts/Interface/Terminal.cs @@ -31,7 +31,9 @@ namespace NeonTea.Quakeball.Interface { public static string INFO_COLOR = "#FE8"; public static string ERROR_COLOR = "#F33"; - void Start() { + public static Terminal Singleton => GameObject.FindGameObjectWithTag("Terminal").GetComponent(); + + private void Start() { ToggleTerminalAction = new InputAction("Toggle Terminal", binding: "/backquote"); ToggleTerminalAction.Enable(); ToggleTerminalAction.performed += ToggleTerminal; @@ -71,7 +73,7 @@ namespace NeonTea.Quakeball.Interface { } } - void Update() { + private void Update() { Vector3 pos = TerminalPanel.anchoredPosition; pos.y = Mathf.Lerp(pos.y, DesiredTerminalPos, Time.deltaTime * 10); TerminalPanel.anchoredPosition = pos;