#thread

1 messages · Page 1 of 1 (latest)

ruby moat
#

@slim portal what's your code again?

#

show

slim portal
#

it aint sending the screenshot here

ruby moat
slim portal
#

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

ruby moat
slim portal
#

for 1 sec

#

and then appear

#

actually @ruby moat i somehow got it to work from a google forum

#

thanks for ur precious time