标签:
using UnityEngine; using System.Collections; public enum EnemyType { enemy0, enemy1, enemy2 } public class enemy : MonoBehaviour { public EnemyType type=EnemyType.enemy0; }
这样就可以在inspector界面上去选择敌人的类型了
标签:
原文地址:http://www.cnblogs.com/fuperfun/p/5345622.html