Implement enemy spawning and following waypoints
This commit is contained in:
35
Assets/Scripts/Data/WaveGroup.cs
Normal file
35
Assets/Scripts/Data/WaveGroup.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user