Scriptum/Assets/DisplayExpStatus.cs

25 lines
433 B
C#
Raw Normal View History

2022-12-18 19:19:57 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DisplayExpStatus : MonoBehaviour
{
public GameObject expText;
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Tab))
{
expText.SetActive(true);
}
if (Input.GetKeyUp(KeyCode.Tab))
{
expText.SetActive(false);
}
}
}