Interactible objects can serve as trigger on other objects now.
If there is no other object referenced they will do some action on themselves.
Otherwise ActivateTargetAction() is called on the target object, which can practically do anything.
InteractionMessageTarget is a sample for this.
All that is needed for any other action is:
inherit from InteractionTarget
implement override public bool ActivateTargetAction()
the base class will automatically grab a reference to the InteractionBroker object in the scene which can be used as _broker
Interactible objects can serve as trigger on other objects now. If there is no other object referenced they will do some action on themselves. Otherwise
ActivateTargetAction()
is called on the target object, which can practically do anything.InteractionMessageTarget
is a sample for this.All that is needed for any other action is:
InteractionTarget
override public bool ActivateTargetAction()
InteractionBroker
object in the scene which can be used as_broker
null
!