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); } }