local SUIHandFollow = {} local function SetSelectedEffect(target, bShow) print("SUIHandFollow.SetSelectedEffect") local powerUpGlow = target.transform:Find("PowerupGlow1").gameObject local effectLight = target.transform:GetChild(2).gameObject powerUpGlow:SetActive(bShow) effectLight:SetActive(bShow) require("Base/SMusicManager.lua"):PlaySound("Audios/Gaming/lockSelectObj.mp3") end local function SetColliderEnabled(target, bEnabled) print("----> SUIHandFollow.SetColliderEnabled") target.transform:GetComponent("Collider2D").enabled = bEnabled end function SUIHandFollow.OnTriggerEnter2D(coll) print("----> SUIHandFollow.OnTriggerEnter2D coll:", coll.name) SetColliderEnabled(coll.gameObject, false) local dataRelay = require("Base/DataRelay.lua") local GAMING_SELECT_TWO = dataRelay:GetCache(dataRelay.KEY_TYPE.GAMING_SELECT_TWO) if GAMING_SELECT_TWO then return end SetSelectedEffect(coll.gameObject, true) require("UI/SUIGamingPanel.lua"):SelectShape(coll.gameObject) end return SUIHandFollow