--移动组件 local ExpModelSystem = {} --[[ 激活 --]] function ExpModelSystem.OnActive(expEntity) expEntity:SetVisible(true, true) end --[[ 设置显隐 --]] function ExpModelSystem.OnSetVisible(expEntity, visible, contentPet) expEntity:SetVisible(visible, contentPet) end --[[ 上马 -无马加载马 --]] function ExpModelSystem.OnRideHorse(expEntity, horseModelPath, horseShowEffect, scale) expEntity:RideHorse(horseModelPath, horseShowEffect, scale) end --[[ 下马 --]] function ExpModelSystem.OnOffHorse(expEntity) expEntity:OffHorse() end --[[ 武将换神兵 --]] function ExpModelSystem.OnChangedMagicWeapon(expEntity) expEntity:ChangeHeroMagicWeapon() end --上载具(已判断是自己) function ExpModelSystem.OnDriveEntity(expEntity ,carEntity) AuxUtil.SetVisualCullingPriority(carEntity.ExpEntity.RenderEntity, LuaConst.ESpecialVisualPriority.DRIVE_CAR) print("---------OnDriveEntity---------------") end --下载具(已判断是自己) function ExpModelSystem.OnOffDriveEntity(expEntity ,carEntity) local feature = carEntity.components.base.CurMonsterFeature local visualPriority = feature.VisualPriority AuxUtil.SetVisualCullingPriority(carEntity.ExpEntity.RenderEntity, visualPriority) end return ExpModelSystem