mistahmikey
New Member
- Joined
- Jun 29, 2015
- Messages
- 161
I am trying to add some behavior on the fly to the GrindTag via my "WhileCondition" routine. In this routine, I execute the following:
However, the action never runs (and I have verified that it is actually added to the tree). If I change the AddHooks call to:
TreeHooks.Instance.InsertHook("TreeStart", 0 spiritBonder);
Then the action runs, but the GrindTag behavior does not run.
So can someone please enlighten me as to the proper way to tack a custom behavior onto the tree from within a Tag?
Thanks
Code:
spiritBonder =
new ActionRunCoroutine(
r =>
SpiritBonder(
getArmoryConvertiblesDelegate,
canEquipmentBeReplacedDelegate));
TreeHooks.Instance.AddHook("SpiritBonder", spiritBonder);
However, the action never runs (and I have verified that it is actually added to the tree). If I change the AddHooks call to:
TreeHooks.Instance.InsertHook("TreeStart", 0 spiritBonder);
Then the action runs, but the GrindTag behavior does not run.
So can someone please enlighten me as to the proper way to tack a custom behavior onto the tree from within a Tag?
Thanks
