function StateHolder.transition(h,l,O)if not O and not h:canTransition(l)then Logger.warn("\067\097\110\110\111\116 \116\114\097\110\115\105\116\105\111\110 \115\116\097\116\101 \102\114\111\109",h.current,"-\062",l)return end h:_callTransitionCallbacks(h.current,l)h.current=l end
--[[
    Transitions the StateHolder into the specified stateName. Optional shouldForce boolean can override the transition
    check to ensure that the state can actually transition.
]]
function StateHolder:transition(stateName, shouldForce)
	if not shouldForce and not self:canTransition(stateName) then
		Logger.warn("Cannot transition state from", self.current, "->", stateName)
		return
	end

	self:_callTransitionCallbacks(self.current, stateName)

	self.current = stateName
end
