Files

13 lines
268 B
C#
Raw Permalink Normal View History

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);
}
}