using UnityEngine;
using System.Collections;
public class EnemyNumHyp : MonoBehaviour
{
public GameObject enemyPrefabHyp;
// Use this for initialization
void Start()
{
StartCoroutine(Test02(10));
}
// Update is called once per frame
void Update()
{
}
//num:一共产生多少波怪
IEnumerator Test02(int num)
{
int count = 0;
while (count < num)
{
co
Unity塔防类游戏用协程实现产生怪的波数和个数
最新推荐文章于 2023-01-05 10:41:14 发布