Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

in c sharp how do you work the wait function

 void Start()
    {

        StartCoroutine(waiter());
    }

        IEnumerator waiter()
        {                           //more just scroll down


            transform.position = new Vector3(0, 0, 0);


            yield return new WaitForSeconds(4);         



            transform.position = new Vector3(1, 5, 0);


        }
 
PREVIOUS NEXT
Tagged: #sharp #work #wait #function
ADD COMMENT
Topic
Name
2+2 =