1
0
mirror of synced 2024-11-30 17:04:29 +01:00

remove unnecessary keybinds to tp-camera toggle

This commit is contained in:
msk 2022-05-23 18:34:13 -07:00
parent d3668cb888
commit 628e4bfb38

View File

@ -34,8 +34,6 @@ public class PanelButton : MonoBehaviour
audioSrc.playOnAwake = false;
audioSrc.clip = btnSound;
Debug.Log(cr.material.color);
if (isToggle)
{
// initialize toggle state
@ -96,19 +94,4 @@ public class PanelButton : MonoBehaviour
if (!isToggle)
cr.material.color = Color.gray;
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Home))
{
camera?.SetActive(true);
}
if (Input.GetKeyDown(KeyCode.End))
{
camera?.SetActive(false);
}
}
}