public void Init(UI.MainUI.TopUpPanel_V2 parent) { uiParent = parent; curGradeLabel.text = LanguageTextManager.GetString("IDS_I4_23"); maxGradeLabel.text = LanguageTextManager.GetString("IDS_I4_6"); nextVipTip1.text = LanguageTextManager.GetString("IDS_I4_1"); nextVipTip2.text = LanguageTextManager.GetString("IDS_I4_22"); vipBtn.SetCallBackFuntion(OnChangeVipViewClick); originalPos = transform.localPosition; preVipLev = PlayerDataManager.Instance.GetPlayerVIPLevel(); //spriteBtn = vipBtn.gameObject.GetComponent<SpriteSwith>();//vipBtn.gameObject.transform.Find ("SpriteWord").GetComponent<UISprite>(); }
public void Init(bool isVipMark, TopUpPanel_V2 vipParent, QuickBuy myQuickParent, int index) { shopIndex = index; //int.Parse(transform.parent.name.Substring (9,1)); isVipPanel = isVipMark; if (isVipPanel) { DiscountLabel = DiscountTip.GetComponent <UILabel>(); MyVipParent = vipParent; } else { myQuickBuyParent = myQuickParent; quickBuyLabel = DiscountTip.GetComponent <SpriteSwith>(); } IsSelect = false; if (MoneyIcon != null) { #if (ANDROID_TENCENT && !UNITY_EDITOR) MoneyIcon.ChangeSprite(2); #else MoneyIcon.ChangeSprite(1); #endif } }