コード例 #1
0
    protected override void Init()
    {
        base.Init();
        _instance         = this;
        backBtn.onClick   = OnBackBtn;
        checkBoxs.onClick = OnCheckBoxClick;
        uiSign_in         = transform.Find("UISign_in");
        getEnergyPanel    = transform.Find("GetEnergyPanel").GetComponent <Transform>();
        upgradegiftbag    = transform.Find("PlayerUpgradegiftbag");
        onlinegiftbag     = transform.Find("PlayerOnlinegiftbag");
        newPlayerRewards  = transform.Find("NewPlayerRewards");
        activationCode    = transform.Find("ActivationCode");
        redPoint_1        = transform.Find("RedPoint_1").GetComponent <GUISingleSprite>();
        redPoint_2        = transform.Find("RedPoint_2").GetComponent <GUISingleSprite>();
        redPoint_3        = transform.Find("RedPoint_3").GetComponent <GUISingleSprite>();
        redPoint_4        = transform.Find("RedPoint_4").GetComponent <GUISingleSprite>();
        redPoint_5        = transform.FindChild("RedPoint_5").GetComponent <GUISingleSprite>();
        time   = TimeManager.Instance.ConvertIntDateTime(Auxiliary.GetNowTime());
        obj[0] = uiSign_in.gameObject;
        obj[1] = getEnergyPanel.gameObject;
        obj[2] = upgradegiftbag.gameObject;
        obj[3] = onlinegiftbag.gameObject;
        obj[4] = newPlayerRewards.gameObject;
        obj[5] = activationCode.gameObject;
        //ClientSendDataMgr.GetSingle().GetEnergySend().SendGetEnergy();

        if (FSDataNodeTable <MealAttrNode> .GetSingleton().DataNodeList.Count > 0)
        {
            nodeDic = FSDataNodeTable <MealAttrNode> .GetSingleton().DataNodeList;

            foreach (var mealAttr in nodeDic)
            {
                if (mealAttr.Value.releassed == 1)
                {
                    playerData.GetInstance().getEnergyData.mealList.Add(mealAttr.Value);
                }
            }
        }
        InitGiveBackData();
    }
コード例 #2
0
 public int openSelectIndex       = -1;    //从收藏界面进入要打开的相应页签
 public UIWelfare()
 {
     _instance = this;
 }