24 lines
589 B
C#
24 lines
589 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public abstract class AbstractWaveLogic : MonoBehaviour
|
|
{
|
|
protected WaveObject waveObject;
|
|
protected List<GameObject> paths;
|
|
protected int currentWaveNumber;
|
|
|
|
public void Setup(WaveObject wo)
|
|
{
|
|
waveObject = wo;
|
|
paths = new List<GameObject>(GameObject.FindGameObjectsWithTag("path"));
|
|
}
|
|
|
|
public virtual void StartWave(int wn)
|
|
{
|
|
currentWaveNumber = wn;
|
|
}
|
|
public abstract bool StartWaveValidation();
|
|
public abstract bool EndWaveValidation();
|
|
}
|