using UnityEngine;

public class TriggerProxy : MonoBehaviour
{
	public GameObject target;

	public string OnTriggerEnterMessage = "OnTriggerEnter";
	public string OnTriggerExitMessage = "OnTriggerExit";
	public string OnTriggerStayMessage = "OnTriggerStay";

	void OnTriggerEnter(Collider other) { if (target != null) target.SendMessage(OnTriggerEnterMessage, other, SendMessageOptions.DontRequireReceiver); }
	void OnTriggerExit(Collider other) { if (target != null) target.SendMessage(OnTriggerExitMessage, other, SendMessageOptions.DontRequireReceiver); }
	void OnTriggerStay(Collider other) { if (target != null) target.SendMessage(OnTriggerStayMessage, other, SendMessageOptions.DontRequireReceiver); }
}
