21 lines
536 B
Lua
21 lines
536 B
Lua
local BattleConst = require "app/module/battle/battle_const"
|
|
local BattleUnitComp = require "app/module/battle/component/battle_unit_comp"
|
|
|
|
local BattleHeroComp = class("BattleHeroComp", BattleUnitComp)
|
|
|
|
local UNIT_STATE = BattleConst.UNIT_STATE
|
|
|
|
function BattleHeroComp:init()
|
|
self.battleMgr = CS.BF.BFMain.Instance.BattleMgr
|
|
end
|
|
|
|
function BattleHeroComp:initBase()
|
|
self.isDead = false
|
|
self.currState = UNIT_STATE.INIT
|
|
end
|
|
|
|
function BattleHeroComp:initPosition()
|
|
self.baseObject:setLocalPosition(0, 0, 0)
|
|
end
|
|
|
|
return BattleHeroComp |