Advertisement
johnnygoodguy2000

EnemyDestroyController.cs

Dec 25th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | Gaming | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class EnemyDestroyController : MonoBehaviour
  6. {
  7.  
  8.  
  9.     public void DestroyEnemy(float delay)  // Ensure method is public
  10.     {
  11.         Destroy(gameObject, delay);
  12.     }
  13. }
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement