- 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
24 lines
741 B
C#
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>();
|
|
}
|