2025-05-13 05:18:03 +03:00
|
|
|
using UnityEngine;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
|
|
|
|
|
public class Killer : MonoBehaviour {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void OnTriggerEnter (Collider other) {
|
|
|
|
|
Debug.Log ("Killing object: " + other.name);
|
|
|
|
|
other.gameObject.SendMessage ("OnKill", gameObject);
|
|
|
|
|
//Destroy(other.gameObject);
|
|
|
|
|
}
|
|
|
|
|
}
|