private void CreateAppear() { if (m_Appear == null) { if (m_ChipGainType == ChipGainType.AutoGain) { m_Appear = Global.gApp.gResMgr.InstantiateObj(EffectConfig.EffectPath[EffectConfig.WpnChipAppearAutoGain]); m_AppearTail = Global.gApp.gResMgr.InstantiateObj(EffectConfig.EffectPath[EffectConfig.WpnChipAppearAutoGainTail]); m_AppearTail.transform.SetParent(transform, false); transform.Find(GameConstVal.TextMeshName).gameObject.SetActive(false); FightUI fightUi = Global.gApp.gUiMgr.GetPanelCompent <FightUI>(Wndid.FightPanel); if (fightUi != null) { RectTransform rext = fightUi.GetChipIconRectTsf(); m_DestPos = rext.position; } else { m_DestPos = Vector3.zero; } Vector3 screenPoint = Camera.main.WorldToScreenPoint(transform.position); transform.position = UiTools.ScreenToUiWorld(screenPoint); m_StartPos = transform.position; AddChip(); } else { m_Appear = Global.gApp.gResMgr.InstantiateObj(EffectConfig.EffectPath[EffectConfig.WpnChipAppearTriggerGain]); } m_Appear.transform.SetParent(transform, false); } }