4 using System.Collections.Generic;
7 public delegate
void RemoteTriggerHandler(GameObject source, GameObject trigger);
13 [AddComponentMenu(
"Liberi/Remote Trigger")]
16 public event RemoteTriggerHandler Triggered;
17 public event RemoteTriggerHandler Untriggered;
19 void OnCollisionEnter(Collision collision)
21 if (Triggered != null)
22 Triggered(collision.gameObject, gameObject);
25 void OnTriggerEnter(Collider other)
27 if (Triggered != null)
28 Triggered(other.gameObject, gameObject);
31 void OnCollisionExit(Collision collision)
33 if (Untriggered != null)
34 Untriggered(collision.gameObject, gameObject);
37 void OnTriggerExit(Collider other)
39 if (Untriggered != null)
40 Untriggered(other.gameObject, gameObject);
This component is mostly replaced by logic scripts and Vital/Hitter interactions. It's kind of reduna...