*
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user