Beispiel #1
0
    private void InitUI()
    {
        _instance   = this;
        m_transform = this.transform;
        btn_switch  = m_transform.Find("btn_switch").GetComponent <Button>();
        btn_stop    = m_transform.Find("btn_stop").GetComponent <Button>();
        btn_speed   = m_transform.Find("btn_speed").GetComponent <Button>();
        text_kills  = m_transform.Find("Image_timeBg/lbl_kills").GetComponent <Text>();

        _v3Gold = m_transform.Find("Image_timeBg/Image_gold").localPosition;
        _v3Wood = m_transform.Find("Image_timeBg/Image_wood").localPosition;

        _uifightBallMatch = m_transform.GetComponent <UIFightBallMatch>();
        _uiBallManager    = m_transform.GetComponent <UIBallManager>();
        SetKillMonsterNum(0);
    }
Beispiel #2
0
    private void InitUI()
    {
        _instance = this;
        m_transform = this.transform;
        btn_switch = m_transform.Find("btn_switch").GetComponent<Button>();
        btn_stop = m_transform.Find("btn_stop").GetComponent<Button>();
        btn_speed = m_transform.Find("btn_speed").GetComponent<Button>();
        text_kills = m_transform.Find("Image_timeBg/lbl_kills").GetComponent<Text>();

        _v3Gold = m_transform.Find("Image_timeBg/Image_gold").localPosition;
        _v3Wood = m_transform.Find("Image_timeBg/Image_wood").localPosition;

        _uifightBallMatch = m_transform.GetComponent<UIFightBallMatch>();
        _uiBallManager = m_transform.GetComponent<UIBallManager>();
        SetKillMonsterNum(0);
    }