mirror of
https://github.com/DerTyp7/example-top-down-unity.git
synced 2026-07-31 15:29:02 +02:00
base vitality
This commit is contained in:
18
Assets/Scripts/Player/PlayerController.cs
Normal file
18
Assets/Scripts/Player/PlayerController.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user