using System.Collections; using System.Collections.Generic; using UnityEngine; public class HUBEnemies : MonoBehaviour { public GameObject objectToDestroy; public void ObjectDestroyed() { EndTutorial.instance.ObjectDestroyed(); } private void OnDestroy() { ObjectDestroyed(); } }