30 lines
645 B
C#
30 lines
645 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DisplayExpStatus : MonoBehaviour
|
|
{
|
|
|
|
public GameObject expText;
|
|
public static KeyCode keyToExp;
|
|
|
|
private void Start()
|
|
{
|
|
DisplayHealthStatus.keyToHealth = (KeyCode) System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("EXP HEALTH"));
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (Input.GetKeyDown(keyToExp))
|
|
{
|
|
expText.SetActive(true);
|
|
}
|
|
if (Input.GetKeyUp(keyToExp))
|
|
{
|
|
expText.SetActive(false);
|
|
}
|
|
}
|
|
}
|