public BT_BehaviorDelegator(NodeDescription.BT_NodeType type, UpdateDelegate onUpdate, InitDelegate onInit = null, EnterDelegate onEnter = null, ExitDelegate onExit = null, TerminateDelegate onTerm = null) { Description.Type = type; initDel = onInit; enterDel = onEnter; updateDel = onUpdate; exitDel = onExit; terminateDel = onTerm; }
public static void Initialize() { _getCharsDelegate = BurstCompiler. CompileFunctionPointer <GetCharsDelegate>(GetCharsBurst).Invoke; _terminateDelegate = BurstCompiler. CompileFunctionPointer <TerminateDelegate>(TerminateBurst).Invoke; _getBytesDelegate = BurstCompiler. CompileFunctionPointer <GetBytesDelegate>(GetBytesBurst).Invoke; }