【建木神树】修改

dev_chengFeng
ZhangBiao 2021-01-26 15:38:30 +08:00
parent 7cee83177b
commit ae44413f53
4 changed files with 45 additions and 10 deletions

View File

@ -1468,6 +1468,7 @@ GameObject:
- component: {fileID: 5978868307199444870}
- component: {fileID: 1072730558999711384}
- component: {fileID: 7835085401096484185}
- component: {fileID: 9153693541349561046}
m_Layer: 5
m_Name: Mask
m_TagString: Untagged
@ -1531,6 +1532,48 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
--- !u!114 &9153693541349561046
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2005787329047355383}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 0
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 7835085401096484185}
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!1 &2065276793931984838
GameObject:
m_ObjectHideFlags: 0

View File

@ -1149,13 +1149,6 @@ function this.GetAllFightDataRequest(func)
local data = buffer:DataByte()
local msg = MapInfoProto_pb.getAllLevelDifficultyInfosResponse()
msg:ParseFromString(data)
--FightManager.InitAllMapPgData(msg.levelDifficultyInfos)
--MapTrialManager.RefreshTrialInfo(msg.towerCopyInfo)
CarbonManager.InitCarbonState(msg.mapInfos)
CarbonManager.InitNormalState(msg.playedGenMapId)
CarbonManager.InitCountDownProcess()
CarbonManager.difficultyId = msg.difficultMapOptions
CarbonManager.hasGetRewardCostStar = msg.starNum
MapTrialManager.InitTrialRewardData(msg.trialRewardInfo)
MapTrialManager.killCount=msg.killCount
if func then

View File

@ -23,7 +23,8 @@ function this.OnPowerChange(oldPower)
end
function this.GetTowerLevel()
return MonsterCampManager.GetFourElementTotalWave()
-- return MonsterCampManager.GetFourElementTotalWave()
return 100
end
--树等级表数据

View File

@ -5,7 +5,6 @@ local itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
local artConfig = ConfigManager.GetConfig(ConfigName.ArtResourcesConfig)
local attriConfig = ConfigManager.GetConfigDataByKey(ConfigName.GodHoodTreeSetting,"Id",0)
local curTreeLevel = 0
local curTowerLevel = 0
local length = 0
function SacredTreePanel:InitComponent()
@ -71,7 +70,6 @@ function SacredTreePanel:OnOpen()
end
function SacredTreePanel:OnShow()
curTreeLevel = SacredTreeManager.treeLevel
curTowerLevel = SacredTreeManager.GetTowerLevel()
length = LengthOfTable(SacredTreeManager.treeLevelConfig)
Util.SetGray(self.upgradeBtn,curTreeLevel >= length)