mirror of
https://github.com/DerTyp7/example-top-down-unity.git
synced 2025-10-31 21:27:07 +01:00
open calendar with "c"
This commit is contained in:
@@ -5,7 +5,14 @@ using UnityEngine;
|
||||
// Handles the player input, such as interactions
|
||||
public class PlayerController : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
GameObject calendar;
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetButtonDown("Calendar") && calendar != null)
|
||||
{
|
||||
calendar.SetActive(!calendar.activeSelf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user