This commit is contained in:
2025-05-13 05:18:03 +03:00
parent 0790b782f2
commit 2ca246b75c
1494 changed files with 22057 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
using UnityEngine;
using System.Collections;
public class RespawnNotify : MonoBehaviour {
public ISpawner spawner;
public bool destroyOnRespawn = true;
void OnKill(GameObject obj){
if (spawner != null) {
spawner.Respawn();
if(destroyOnRespawn){
Destroy(gameObject);
}
}
}
}