diff --git a/ldjam50/Assets/Scripts/OverMind.cs b/ldjam50/Assets/Scripts/OverMind.cs index 74b270a..e039fda 100644 --- a/ldjam50/Assets/Scripts/OverMind.cs +++ b/ldjam50/Assets/Scripts/OverMind.cs @@ -10,7 +10,7 @@ public class OverMind : MonoBehaviour [SerializeField] private Gameplay gamePlay; // [SerializeField] private GameObject mobPull; - [SerializeField] private GameObject activeMobs; + private float balanceScale = 1f; private List _pullEnemies; @@ -41,6 +41,9 @@ public struct MobParameters } [SerializeField] private List mobs; + + private GameObject mobsObject; + private GameObject activeMobs; // [SerializeField] private MobParameters standartMob; // [SerializeField] private MobParameters lightMob; // [SerializeField] private MobParameters heavyMob; @@ -52,10 +55,15 @@ void Start() print(GenerateSpawnRegions().TopRegion); generatedSpawnRegions = GenerateSpawnRegions(); + mobsObject = Instantiate(new GameObject()); + mobsObject.name = "Mobs"; + mobsObject.transform.parent = transform; + + //activeMobs = new GameObject } - - public SpawnRegions GenerateSpawnRegions() + + private static SpawnRegions GenerateSpawnRegions() { const float spawnBorder = 2f; var stageDimensions = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, Screen.height,0)); @@ -122,7 +130,7 @@ private Vector4 PickRandomSpawnBorder() // } // } - Vector3 GenerateRandomSpawnMobPoint() + private Vector3 GenerateRandomSpawnMobPoint() { var _randomSpawnRegion = PickRandomSpawnBorder(); var spawnPoint = new Vector3(