add: Level and Game controllers base
update: scripts are now in folders
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class GameController : MonoBehaviour
|
||||
{
|
||||
public List<LevelInfo> levels;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LevelInfo {
|
||||
public SceneAsset scene;
|
||||
public List<EnemyInLevel> enemies;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class EnemyInLevel {
|
||||
public GameObject enemy;
|
||||
public int count;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 21512d898f67c404d9a7519c0b7dcba8
|
||||
@@ -0,0 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class LevelController : MonoBehaviour
|
||||
{
|
||||
public List<Transform> spawnPoints;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 67f50dd8d32d83d4891b1a18fd12ec38
|
||||
Reference in New Issue
Block a user