xiyou_sanguo
parent
ccaf562af7
commit
c7e8888419
|
|
@ -27,6 +27,7 @@ function this:InitComponent()
|
|||
this.roompre = Util.GetGameObject(self.gameObject, "roomPre")
|
||||
this.buildPre = Util.GetGameObject(self.gameObject, "buildPre")
|
||||
this.battles = Util.GetGameObject(self.gameObject, "battle")
|
||||
this.guide = Util.GetGameObject(self.gameObject, "Guide")
|
||||
this.enemyPre = Util.GetGameObject(self.gameObject, "enemyPre")
|
||||
this.backBtn = Util.GetGameObject(self.gameObject, "back")
|
||||
this.restartGameBtn = Util.GetGameObject(self.gameObject, "restartGame")
|
||||
|
|
@ -126,7 +127,7 @@ function this:InitGame()
|
|||
if i > 1 then
|
||||
mod = 2
|
||||
end
|
||||
|
||||
this.guide:SetActive(RatioNumberManager.chapterId == 1 and RatioNumberManager.selectLevelId == 1)
|
||||
local build = self:GetBuild(mod)
|
||||
build.name = "build" .. i
|
||||
build.transform.localPosition = Vector2.New(-270 + (i - 1) * 540, 0)
|
||||
|
|
@ -487,7 +488,7 @@ function this:BattleLogic(curPos)
|
|||
-- if RatioNumberManager.gameIndex == 1 then
|
||||
-- -- isGuide = false
|
||||
-- end
|
||||
|
||||
this.guide:SetActive(false)
|
||||
startBattle = true
|
||||
local power = Util.GetGameObject(enemy.enemy, "power"):GetComponent("Text")
|
||||
local hj = Util.GetGameObject(enemy.enemy, "hj"):GetComponent("Text")
|
||||
|
|
|
|||
Loading…
Reference in New Issue