DevConsole: - UI and Controls (PlayerInput) - Still need access to scripting & other Unity Staff Test Robot: - Deleted unusual prefab - minor updates to TestRobot with Ak
24 lines
475 B
C#
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);
|
|
}
|
|
}
|