unity脚本
Mono技术注意事项
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
IEnumerator SomeCoroutine() // C#协同程序
{
yield return 0; // 等待一帧
yield return new WaitForSeconds(2); // 等待2s
}
}unity脚本基本语法
最后更新于