public void PrefabDied(GameObject enemy) { //ignore this callback if the spawn instance is null (next wave began) if (this == null || parentWave == null) { return; } ChildrenSpawnsActivate(); parentWave.CheckOffList(enemy); }
public void PrefabDied(GameObject enemy) { //ignore this callback if the spawn instance is null (next wave began) if (this == null || parentWave == null) { return; } ChildrenSpawnsActivate(); parentWave.CheckOffList(enemy); }