#thread
1 messages · Page 1 of 1 (latest)
it aint sending the screenshot here
then paste the code here
public class Coroutine : MonoBehaviour
{
public bool IsTrue = true;
[SerializeField] private GameObject Box;
private void Update()
{
if (IsTrue)
{StartCoroutine(HideObject());}
}
IEnumerator HideObject()
{
yield return new WaitForSeconds(1);
Box.SetActive(true);
IsTrue = false;
}
}
what object are you trying to hide?