Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

set active for a seconds

void Your_name_fuction()
{

TxtPontosPistas.gameObject.SetActive(true);

StartCoroutine(Timing_toWait(4f));

}


IEnumerator Timing_toWait(float waitTime)
{
yield return new WaitForSeconds(waitTime);

TxtPontosPistas.gameObject.SetActive(false);
}
 
PREVIOUS NEXT
Tagged: #set #active #seconds
ADD COMMENT
Topic
Name
7+6 =