local Base = require "Battle/Logic/Entity/State/State_Node" local State_Wander = class("State_Wander",Base) --[[ 进入该State --]] function State_Wander:StateIn(entity, skillID, animName, command) Base.StateIn(self, entity, skillID, animName, command) entity.components.anim:SetCurAnimID(animName,LuaConst.MoveMode.ByAnimation) end --[[ 退出该State --]] function State_Wander:StateOut(entity, skillID, animName, command) end function State_Wander:StateUpdateNoCmd(entity) return LuaConst.StateType.Idle end return State_Wander