Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Unity Wait Time Fixed

using UnityEngine;
using Unity;
using System.Collections;

public class testing : MonoBehaviour
{
void Start()
    {
        //Start the coroutine we define below named ExampleCoroutine.
        StartCoroutine(ExampleCoroutine());
    }

    IEnumerator ExampleCoroutine()
    {
        //Print the time of when the function is first called.
        print("Starting Time : " + Time.time);

        //yield on a new YieldInstruction that waits for 5 seconds.
        yield return new WaitForSeconds(2);

        //After we have waited 2 seconds print the time again.
        print("Finished Time : " + Time.time);
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: count split elements .net 
Csharp :: how to start commvault services on linux 
Csharp :: c# hardcode datetime quoting 
Csharp :: xamarin c# switch on hotspot Programmatically 
Csharp :: revision1 
Csharp :: Dictionary of array in C# 
Csharp :: c# enum variable set to nonthing 
Csharp :: C# if with obj params 
Csharp :: c# initialize event 
Csharp :: can you use unity for ftee 
Csharp :: vb.net convert int32 into boolean array stack overflow 
Csharp :: stack in c# 
Csharp :: linq query languages 
Csharp :: trimend c# 
Csharp :: unfreeze position in unity 
Csharp :: how to specify order of test in c# 
Csharp :: DefaultContractResolver .net exclude null values JsonSerializerSettings ContractResolver DefaultContractResolver 
Csharp :: c# check if username and password is true 
Csharp :: encode < for xml 
Csharp :: regex ip rage detect 
Csharp :: How to add dollar sign $ to strings in Dart 
Csharp :: reflection assemblies gettypes 
Csharp :: how to make dobuble jump unity 2d 
Csharp :: k8s You must be logged in to the server (Unauthorized) 
Csharp :: c# project default namespace 
Csharp :: how to unit test dbcontext in .net core 
Csharp :: how to access a dictionary in c# 
Csharp :: why process not found in c# 
Csharp :: What does "DateTime?" mean in C#? 
Csharp :: Datagridview causing IndexOutOfRangeException when clicked upon 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =