mirror of
https://github.com/DerTyp7/example-top-down-unity.git
synced 2025-10-29 20:42:08 +01:00
19 lines
396 B
C#
19 lines
396 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
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);
|
|
}
|
|
}
|
|
}
|