Пример #1
0
    protected override void Init()
    {
        base.Init();
        instance              = this;
        HeroPosEmb            = GameObject.Find("HeroPosEmbattle");
        checkBoxs             = transform.Find("CheckBoxs").GetComponent <GUISingleCheckBoxGroup>();
        titleMultList         = transform.Find("ScrollView/MultList").GetComponent <GUISingleMultList>();
        backBtn               = transform.Find("BackBtn").GetComponent <GUISingleButton>();
        titleScrollView       = transform.Find("ScrollView").GetComponent <UIScrollView>();
        promptLabel           = transform.Find("PromptLabel").GetComponent <UILabel>();
        playerTitleName       = transform.Find("PlayerTitleName").GetComponent <UILabel>();
        tweenA                = promptLabel.transform.GetComponent <TweenAlpha>();
        tweenP                = promptLabel.transform.GetComponent <TweenPosition>();
        titleAttributeT       = transform.Find("TitileAttribute");
        grid                  = transform.Find("TitileAttribute/Grid").GetComponent <UIGrid>();
        powerLabel            = transform.Find("TitileAttribute/Grid/powerLabel").GetComponent <UILabel>();
        intelligenceLabel     = transform.Find("TitileAttribute/Grid/intelligenceLabel").GetComponent <UILabel>();
        agilityLabel          = transform.Find("TitileAttribute/Grid/agilityLabel").GetComponent <UILabel>();
        hpLabel               = transform.Find("TitileAttribute/Grid/hpLabel").GetComponent <UILabel>();
        attackLabel           = transform.Find("TitileAttribute/Grid/attackLabel").GetComponent <UILabel>();
        armorLabel            = transform.Find("TitileAttribute/Grid/armorLabel").GetComponent <UILabel>();
        magic_resistLabel     = transform.Find("TitileAttribute/Grid/magic_resistLabel").GetComponent <UILabel>();
        criticalLabel         = transform.Find("TitileAttribute/Grid/criticalLabel").GetComponent <UILabel>();
        dodgeLabel            = transform.Find("TitileAttribute/Grid/dodgeLabel").GetComponent <UILabel>();
        hitratioLabel         = transform.Find("TitileAttribute/Grid/hitratioLabel").GetComponent <UILabel>();
        armorpenetrationLabel = transform.Find("TitileAttribute/Grid/armorpenetrationLabel").GetComponent <UILabel>();
        magicpenetrationLabel = transform.Find("TitileAttribute/Grid/magicpenetrationLabel").GetComponent <UILabel>();
        suckbloodLabel        = transform.Find("TitileAttribute/Grid/suckbloodLabel").GetComponent <UILabel>();
        tenacityLabel         = transform.Find("TitileAttribute/Grid/tenacityLabel").GetComponent <UILabel>();
        mspeed                = transform.Find("TitileAttribute/Grid/mspeed").GetComponent <UILabel>();
        aspeed                = transform.Find("TitileAttribute/Grid/aspeed").GetComponent <UILabel>();
        fanwei                = transform.Find("TitileAttribute/Grid/fanwei").GetComponent <UILabel>();
        nottitleDes           = transform.Find("NotTitleDes");
        backBtn.onClick       = OnBackClick;
        checkBoxs.onClick     = OnTitleClick;

        //InitTitleData();
        //checkBoxs.DefauleIndex = 0;
        //OnTitleClick(0, true);
    }
Пример #2
0
 public UIPlayerTitlePanel()
 {
     instance = this;
 }