Implement enemy spawning and following waypoints

This commit is contained in:
2024-08-12 14:21:11 +02:00
parent 5104b336ca
commit 3f715b2bbc
44 changed files with 1894 additions and 52 deletions

View File

@@ -0,0 +1,35 @@
using Sirenix.OdinInspector;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class WaveGroup
{
[SerializeField]
[AssetsOnly]
[Required]
public GameObject prefab;
[SerializeField]
[Range(1, 30)]
public int count = 1;
[SerializeField]
[Range(0, 30)]
[LabelText("Time to next")]
public float timeToNext = 1;
//[LabelText("1")]
//[HorizontalGroup(Title = "Waypoint group")]
//public bool inWaypointGroup1;
//[LabelText("2")]
//[HorizontalGroup]
//public bool inWaypointGroup2;
//[LabelText("3")]
//[HorizontalGroup]
//public bool inWaypointGroup3;
}