示例#1
0
 void OnGUI()
 {
     if (GUILayout.Button("產生單隻怪物"))
     {
         EnemySpawnMgr.SpawnEnemy(MapMgr.SpawnTs.position);
     }
     if (GUILayout.Button("怪物腳本開始"))
     {
         EnemySpawnMgr.StartSpawnEnemy();
     }
     if (GUILayout.Button("讓怪物全死亡"))
     {
         EnemySpawnMgr.MonsterAllDie();
     }
     if (GUILayout.Button("切換控制"))
     {
         HeroMgr.CreateHero();
     }
 }