CypernBuilding/Assets/Wu/Knap.cs

22 lines
371 B
C#
Raw Normal View History

2023-10-26 11:53:45 +02:00
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);
}
}