How to make a delay with C# in Unity3D?

后端 未结 3 890
北海茫月
北海茫月 2021-01-26 02:14

I just started to learn c# in unity. I followed a tutorial, but i wanna add some things.

using UnityEngine;
using UnityEngine.UI;
using System.Collections;

pub         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-26 02:29

    I can assume that it's a windows-forms application so that you're better not to use Thread.Sleep as it will block the UI thread.

    Instead, use: System.Windows.Forms.Timer

提交回复
热议问题