add: Level and Game controllers base

update: scripts are now in folders
This commit is contained in:
KOSMOGOR
2025-03-17 15:28:10 +03:00
parent b268225372
commit 2869bfdb33
26 changed files with 171 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 775c6554dbb557740af9399208e5e947
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6eda34b3d0947274d9f031e73ca44c4c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+22
View File
@@ -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
+8
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a78510d754bdf9543b0b23e65b4c14bb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: