public class TargetProMessenger: MonoBehaviour Examples are in UnityScript (a.k.a. JaveScript) Message (receiving function) arguments are optional, but available as shown in the the docs for each TargetPRO component delegates. For example, the Targetable's OnDetected delegate shows a TargetTracker argument. Using this example, either of these functions would be triggered:
Functions which offer more than one argument are packed in to a single struct to be passed. For example, the Targetable OnHit event offers both: HitEffectList effects and Target target. TheTargetPROMessenger.MessageData_TargetableOnHit will be passed with both arguments, like this:
|
Code Reference >