GameClearController.cs
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class GameClearController : MonoBehaviour
{
private GameObject[] enemyObjects;
void Update()
{
enemyObjects = GameObject.FindGameObjectsWithTag("Enemy");
print(enemyObjects.Length);
if (enemyObjects.Length == 0)
{
SceneManager.LoadScene("GameClear");
}
}
}