Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to wait in c#

System.Threading.Thread.Sleep(Milliseconds);
Comment

wait C#

void Start()
{
    StartCoroutine(waiter());
}

IEnumerator waiter()
{
    //Rotate 90 deg
    transform.Rotate(new Vector3(90, 0, 0), Space.World);

    //Wait for 4 seconds
    yield return new WaitForSeconds(4);

    //Rotate 40 deg
    transform.Rotate(new Vector3(40, 0, 0), Space.World);

    //Wait for 2 seconds
    yield return new WaitForSeconds(2);

    //Rotate 20 deg
    transform.Rotate(new Vector3(20, 0, 0), Space.World);
}
Comment

how to wait in c#


    void Start()
    {

        StartCoroutine(waiter());
    }
          

        IEnumerator waiter()
        {                        


    

  
            yield return new WaitForSeconds(4);



   


        }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# sc create service 
Csharp :: c# exception middleware 
Csharp :: c# square symbol 
Csharp :: c# code examples 
Csharp :: Transpose Matrix CSharp 
Csharp :: using statement c# 
Csharp :: loop in c# 
Csharp :: c# dapper execute stored procedure with parameters 
Csharp :: static property in c# 
Csharp :: c# list initialize 
Csharp :: dateTime first/last 
Csharp :: Storing Data within your TileEntity 
Csharp :: Convert a string to Integer in C# without library function 
Csharp :: unity color mix 
Csharp :: Delayed respawn timer 
Csharp :: c# convert string to base64 string 
Csharp :: empty int array c# 
Csharp :: Unity Scene Load by BuildIndex 
Csharp :: Max upload size for ASP.MVC CORE website 
Csharp :: core ui switch 
Csharp :: asp net mvc convert ienumerable to selectlistitem 
Csharp :: Unity how get Attributes of a gameObject 
Csharp :: how to edit a c# list 
Csharp :: control shot c# WF 
Csharp :: get appsetting.json config .net 
Csharp :: how to reference a local file c# 
Csharp :: ask int text c# 
Csharp :: C# USING SHARED CLASS 
Csharp :: ignore collision unity 2d 
Csharp :: material Array setter 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =