You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When two BoolComparison return false..the unity crash!
local boolCom3002 = BT.BoolComparison:New(nil,true,false)
local boolCom3003 = BT.BoolComparison:New(nil,true,false)
The text was updated successfully, but these errors were encountered:
--region treeSolve
function BT.BTree:IsParent(parentTaskIndex, childTaskIndex)
while childTaskIndex ~= 0 do
if childTaskIndex == parentTaskIndex then
return true
end
childTaskIndex = self.tParentIndex[childTaskIndex]
end
end
function BT.BTree:PushTask(taskIndex, stackIndex)
local task = self.tTaskList[taskIndex]
local stack = self.tRunStack[stackIndex]
if stack == nil then
return
end
if stack:Empty() == false and stack:Peek() == taskIndex then
return
end
stack:Push(taskIndex)
task:OnStart()
end
An other question is ~~ "‘’‘’‘’ task:OnStart()‘’‘’this function here ,like Onupdate() run every frame ,Is that Right?
When two BoolComparison return false..the unity crash!
local boolCom3002 = BT.BoolComparison:New(nil,true,false)
local boolCom3003 = BT.BoolComparison:New(nil,true,false)
The text was updated successfully, but these errors were encountered: