【寻宝迷踪】骑着坐骑寻宝,特效显示分割线,需要修改
parent
23ed8a7a2b
commit
1c137cc911
|
@ -90,7 +90,7 @@ function XunBaoMiZongMap:OnShow()
|
||||||
self.btnBack.gameObject:GetComponent("Button").interactable = true
|
self.btnBack.gameObject:GetComponent("Button").interactable = true
|
||||||
self.btnGet.sprite = self.spLoader:LoadSprite("x_xbmz_xunbaoanniu01")
|
self.btnGet.sprite = self.spLoader:LoadSprite("x_xbmz_xunbaoanniu01")
|
||||||
self.effectBtnGet:SetActive(false)
|
self.effectBtnGet:SetActive(false)
|
||||||
self.liveNode = PlayerLiveView:New(self.roleRoot,1)
|
self.liveNode = PlayerLiveView:New(self.roleRoot,1,nil,nil,nil,true)
|
||||||
self.liveNode:OnOpen(300,Vector3.zero,WALK_DIR.IDLE_FRONT)
|
self.liveNode:OnOpen(300,Vector3.zero,WALK_DIR.IDLE_FRONT)
|
||||||
self.liveNode:SetTitleHide()
|
self.liveNode:SetTitleHide()
|
||||||
self:LoadMapData()
|
self:LoadMapData()
|
||||||
|
|
|
@ -8,7 +8,7 @@ local settingValue = ServerConfigManager.GetSettingValue(ServerConfigManager.Set
|
||||||
-- designation = 80010
|
-- designation = 80010
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posType)
|
function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posType,_hideRide)
|
||||||
-- Type = _Type
|
-- Type = _Type
|
||||||
-- local b = {}
|
-- local b = {}
|
||||||
-- b.gameObject = gameObject
|
-- b.gameObject = gameObject
|
||||||
|
@ -29,6 +29,11 @@ function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posT
|
||||||
designation = PlayerManager.GetPlayerDesignation()
|
designation = PlayerManager.GetPlayerDesignation()
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
LogRed("instance.PlayerLiveViewData.ride:"..tostring(instance.PlayerLiveViewData.ride)..tostring(_hideRide))
|
||||||
|
if _hideRide then
|
||||||
|
instance.PlayerLiveViewData.ride = nil
|
||||||
|
end
|
||||||
|
LogRed("instance.PlayerLiveViewData.ride:"..tostring(instance.PlayerLiveViewData.ride))
|
||||||
instance.orginLayer = orginLayer
|
instance.orginLayer = orginLayer
|
||||||
instance.transform = gameObject.transform
|
instance.transform = gameObject.transform
|
||||||
instance.leader:SetActive(true)
|
instance.leader:SetActive(true)
|
||||||
|
|
Loading…
Reference in New Issue