ict.shenzhi/Assets/ZHYscrip/scrip/helpFunction.cs

35 lines
600 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class helpFunction : MonoBehaviour
{
public GameObject HelpUI;
private bool action = false;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void helpUI()
{
if (!action)
{
HelpUI.SetActive(true);
action = true;
}
else
{
HelpUI.SetActive(false);
action = false;
}
}
}