public GameObject BindEffect(string sDummy, string sEffect, float nZoomRate, float fDecTime) { Transform oDummy = GetDummyFromCache(sDummy); if (!oDummy) { DebugMsg("BindEffect wrong sDummy:" + m_sName + "," + sDummy); return(null); } GameObject oEffectObj = ResourceMgr.LoadAssetEx(sEffect, false); if (!oEffectObj) { DebugMsg("BindEffect wrong sEffect:" + sEffect); return(null); } oEffectObj.SetActive(false); Transform oEffectTrans = oEffectObj.transform; oEffectTrans.SetParent(oDummy); oEffectTrans.localPosition = Vector3.zero; oEffectTrans.localRotation = new Quaternion(0.0f, 0.0f, 0.0f, 0.0f); oEffectTrans.localScale = Vector3.one; UIMgr.ApplyParentLayer(oEffectObj); DealFixedRotation(oEffectObj); oEffectObj.SetActive(true); return(oEffectObj); }