This commit is contained in:
2026-02-11 20:50:03 +05:30
parent df77848ca5
commit 614c38bdaf
2303 changed files with 256620 additions and 4 deletions
@@ -0,0 +1,15 @@
using UnityEngine;
namespace Mirror
{
public class ToggleHotkey : MonoBehaviour
{
public KeyCode Key = KeyCode.F10;
public GameObject ToToggle;
void Update()
{
if (Input.GetKeyDown(Key))
ToToggle.SetActive(!ToToggle.activeSelf);
}
}
}