remove unnecessary keybinds to tp-camera toggle
This commit is contained in:
parent
d3668cb888
commit
628e4bfb38
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user