Pedro Gomes 5569dd2b06 Enemy spawning update
- spawning is now taken care by the actual gamescene based on the zone data, instead of network manager
- each zone data now have a list of possible enemies for that specific zone
2024-07-28 16:37:22 +01:00

24 lines
741 B
C#

using Kryz.CharacterStats.Examples;
using Kryz.CharacterStats;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static GameConstants.EnemySpawning;
[System.Serializable]
[CreateAssetMenu(fileName = "ZoneData", menuName = "RiftMayhem/Settings/Zones/ZoneData", order = 0)]
public class ZoneData : ScriptableObject
{
[Header("In-game name:")]
public string zoneName;
[Header("Respective Level to Load Name:")]
public string levelName;
[Header("IsHostileZone:")]
public bool isHostileZone = true;
[Header("EnemyIDs:")]
public List<EnemyID> possibleEnemies = new List<EnemyID>();
[Header("Runtime Data:")]
public List<Transform> spawnPoints = new List<Transform>();
}