RobotFire/Assets/Scripts/Runtime/DeveloperConsoleUI.cs
AderKonstantin 5720408bbf Add DevConsole (in-progress) & minor updates
DevConsole:
- UI and Controls (PlayerInput)
- Still need access to scripting & other Unity Staff
Test Robot:
- Deleted unusual prefab
- minor updates to TestRobot with Ak
2024-11-21 11:26:06 +03:00

24 lines
475 B
C#

using UnityEngine;
using UnityEngine.UI;
public class DeveloperConsoleUI : MonoBehaviour
{
[SerializeField] private Button closeBtn;
[SerializeField] private GameObject console;
private void Awake(){
closeBtn.onClick.AddListener(() =>{
console.SetActive(false);
});
}
public void OpenConsole() {
console.SetActive(true);
}
public void CloseConsole() {
console.SetActive(false);
}
}