2023-01-10 04:21:36 +01:00
|
|
|
using System;
|
2022-12-18 19:19:57 +01:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class DisplayExpStatus : MonoBehaviour
|
|
|
|
{
|
|
|
|
|
|
|
|
public GameObject expText;
|
2023-01-10 04:21:36 +01:00
|
|
|
public static KeyCode keyToExp;
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
{
|
|
|
|
DisplayHealthStatus.keyToHealth = (KeyCode) System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("EXP HEALTH"));
|
|
|
|
}
|
2022-12-18 19:19:57 +01:00
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
2023-01-10 04:21:36 +01:00
|
|
|
if (Input.GetKeyDown(keyToExp))
|
2022-12-18 19:19:57 +01:00
|
|
|
{
|
|
|
|
expText.SetActive(true);
|
|
|
|
}
|
2023-01-10 04:21:36 +01:00
|
|
|
if (Input.GetKeyUp(keyToExp))
|
2022-12-18 19:19:57 +01:00
|
|
|
{
|
|
|
|
expText.SetActive(false);
|
2023-01-10 04:21:36 +01:00
|
|
|
}
|
2022-12-18 19:19:57 +01:00
|
|
|
}
|
|
|
|
}
|