Hi
I am trying to write my own GraphUpdateObject for a GridGraph but I cant make it work.
WillUpdateNode is called but Apply is not. What am I doing wrong?
Here is the code:
public class MovingObstacleGUO : GraphUpdateObject
{
public MovingObstacleGUO(Bounds bounds) : base(bounds)
{
updatePhysics = false;
updateErosion = false;
modifyWalkability = false;
}
public override void WillUpdateNode(GraphNode node)
{
Debug.Log("WillUpdateNode");
}
public override void Apply(GraphNode node)
{
Debug.Log("Apply");
}
}