【牛转乾坤】特效代码提交
parent
9e14cada49
commit
3d72bd510a
|
@ -29,6 +29,7 @@ function NiuZhuanQianKun:InitComponent()
|
|||
this.rollBtn = Util.GetGameObject(self.gameObject,"rollBtn")
|
||||
this.center = Util.GetGameObject(self.gameObject,"center")
|
||||
this.tip = Util.GetGameObject(self.gameObject,"tip"):GetComponent("Text")
|
||||
this.effect = Util.GetGameObject(self.gameObject,"UI_Effect_MianBan_NiuZhuanQianKun")
|
||||
for i = 1, 8 do
|
||||
rewardList[i] = Util.GetGameObject(self.gameObject,"center/reward"..i)
|
||||
textList[i] = Util.GetGameObject(rewardList[i],"Text")
|
||||
|
@ -77,6 +78,8 @@ function NiuZhuanQianKun:RemoveListener()
|
|||
end
|
||||
|
||||
function NiuZhuanQianKun:OnSortingOrderChange()
|
||||
Util.AddParticleSortLayer(this.effect, self.sortingOrder - _sortingOrder)
|
||||
_sortingOrder = self.sortingOrder
|
||||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
|
@ -132,6 +135,7 @@ end
|
|||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
function NiuZhuanQianKun:OnDestroy()
|
||||
_sortingOrder = 0
|
||||
rewardList = {}
|
||||
textList = {}
|
||||
imgList = {}
|
||||
|
|
Loading…
Reference in New Issue