CypernBuilding/Assets/Wu/Knap.cs

22 lines
371 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Knap : MonoBehaviour
{
public GameObject textObj;
public void ActivateText()
{
textObj.SetActive(true);
Debug.Log("grab");
Invoke("DisableEfterDelay", 10);
}
void DisableEfterDelay()
{
textObj.SetActive(false);
}
}