public static NodeState Tick(int index, INodeBlob blob, IBlackboard bb) { var typeId = blob.GetTypeId(index); var state = _TICKS[typeId](index, blob, bb); blob.SetState(index, state); return(state); }
public static NodeState Tick(int index, INodeBlob blob, IBlackboard bb) { var typeId = blob.GetTypeId(index); var ptr = blob.GetRuntimeDataPtr(index); var state = MetaNodeRegister.NODES[typeId].Tick.Invoke(ptr, index, blob, bb); blob.SetState(index, state); return(state); }