parent
b0d1e2708c
commit
792363c0ef
|
@ -19,9 +19,9 @@ function Game.Initialize()
|
||||||
this.InitManagers()
|
this.InitManagers()
|
||||||
-- 默认30帧
|
-- 默认30帧
|
||||||
if PlayerPrefs.HasKey("ResLution") then
|
if PlayerPrefs.HasKey("ResLution") then
|
||||||
UnityEngine.Application.targetFrameRate = PlayerPrefs.GetInt("ResLution") == 0 and 30 or 60
|
UnityEngine.Application.targetFrameRate = 60--PlayerPrefs.GetInt("ResLution") == 0 and 30 or 60
|
||||||
else
|
else
|
||||||
UnityEngine.Application.targetFrameRate = 30
|
UnityEngine.Application.targetFrameRate = 60
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 延迟
|
-- 延迟
|
||||||
|
|
|
@ -94,7 +94,7 @@ function SettingInfo:SetReslutionTipShow()
|
||||||
local value = PlayerPrefs.GetInt("ResLution")
|
local value = PlayerPrefs.GetInt("ResLution")
|
||||||
this.selectResolution.value = value
|
this.selectResolution.value = value
|
||||||
if value == 0 then
|
if value == 0 then
|
||||||
UnityEngine.Application.targetFrameRate = 30;
|
UnityEngine.Application.targetFrameRate = 45;
|
||||||
this.selectResolutionText.text = "普通帧率"
|
this.selectResolutionText.text = "普通帧率"
|
||||||
this.selectResolutionTip.gameObject:SetActive(false)
|
this.selectResolutionTip.gameObject:SetActive(false)
|
||||||
else
|
else
|
||||||
|
|
|
@ -570,7 +570,7 @@ function this.SetTeamInfo(_go,teamData,type)
|
||||||
Util.SetParticleSortLayer(teamList[hero.position].starGrid,this.sortingOrder + 1)
|
Util.SetParticleSortLayer(teamList[hero.position].starGrid,this.sortingOrder + 1)
|
||||||
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, heroTid)
|
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, heroTid)
|
||||||
teamList[hero.position].proIcon.sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig.PropertyName))
|
teamList[hero.position].proIcon.sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig.PropertyName))
|
||||||
teamList[hero.position].levelText.text =endLess[heroTid].Level or hero.level
|
teamList[hero.position].levelText.text = hero.level
|
||||||
teamList[hero.position].frame.sprite = this.spLoader:LoadSprite(GetQuantityImageByquality(heroConfig.Quality, hero.star))
|
teamList[hero.position].frame.sprite = this.spLoader:LoadSprite(GetQuantityImageByquality(heroConfig.Quality, hero.star))
|
||||||
SetHeroIcon(this.spLoader, hero,teamList[hero.position].icon,heroConfig)
|
SetHeroIcon(this.spLoader, hero,teamList[hero.position].icon,heroConfig)
|
||||||
SetHeroFlyEffect(teamList[hero.position].hero,this.spLoader,star,this.sortingOrder+1,0.6,2)
|
SetHeroFlyEffect(teamList[hero.position].hero,this.spLoader,star,this.sortingOrder+1,0.6,2)
|
||||||
|
|
|
@ -202,7 +202,7 @@ function GodsWayMyTeamPanel:SetSingleFormation(go,data,index)
|
||||||
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, heroData.id)
|
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, heroData.id)
|
||||||
allPower=allPower+heroData.warPower
|
allPower=allPower+heroData.warPower
|
||||||
self.Heros[index][hero.position].proIcon.sprite = self.spLoader:LoadSprite(GetProStrImageByProNum(heroData.changeProId))
|
self.Heros[index][hero.position].proIcon.sprite = self.spLoader:LoadSprite(GetProStrImageByProNum(heroData.changeProId))
|
||||||
self.Heros[index][hero.position].levelText.text = endLessConfig[heroData.id].Level or heroData.lv
|
self.Heros[index][hero.position].levelText.text = heroData.lv --endLessConfig[heroData.id].Level or heroData.lv
|
||||||
self.Heros[index][hero.position].frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(heroConfig.Quality,star))
|
self.Heros[index][hero.position].frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(heroConfig.Quality,star))
|
||||||
SetHeroIcon(self.spLoader,heroData,self.Heros[index][hero.position].icon,heroConfig)
|
SetHeroIcon(self.spLoader,heroData,self.Heros[index][hero.position].icon,heroConfig)
|
||||||
local heroData = {}
|
local heroData = {}
|
||||||
|
|
Loading…
Reference in New Issue