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