Exemplo n.º 1
0
    private bool isShow;          //提示消息框是否显示

    void Awake()
    {
        GameObject numLabel = GameObject.Find("UI Root/Camera/Anchor-Center/BloodSaleNumPanel/NumSprite/Label");

        buyNum = numLabel.gameObject.GetComponent <NumLabel>();
        GameObject blood = GameObject.Find("UI Root/Camera/Anchor-TopRight/Panel/Blood");

        bloodNum = blood.gameObject.GetComponent <BloodNum>();
        GameObject coin = GameObject.Find("UI Root/Camera/Anchor-TopRight/Panel/Coins");

        coinsNumber = coin.gameObject.GetComponent <CoinsNum>();
    }
    private bool isShow;          //提示消息框是否显示

    void Awake()
    {
        GameObject numLabel = GameObject.Find("UI Root/Camera/Anchor-Center/PowerSaleNumPanel/NumSprite/Label");

        buyNum = numLabel.gameObject.GetComponent <NumLabel>();
        GameObject power = GameObject.Find("UI Root/Camera/Anchor-TopRight/Panel/Power");

        powerNum = power.gameObject.GetComponent <PowerNum>();
        GameObject coin = GameObject.Find("UI Root/Camera/Anchor-TopRight/Panel/Coins");

        coinsNumber = coin.gameObject.GetComponent <CoinsNum>();
    }
    private bool isShow;         //提示消息框是否显示

    void Awake()
    {
        GameObject numLabel = GameObject.Find("UI Root/Camera/Anchor-Center/KeySaleNumPanel/NumSprite/Label");

        buyNum = numLabel.gameObject.GetComponent <NumLabel>();
        GameObject key = GameObject.Find("UI Root/Camera/Anchor-TopRight/Panel/Key");

        keyNum = key.gameObject.GetComponent <KeyNum>();
        GameObject stone = GameObject.Find("UI Root/Camera/Anchor-TopRight/Panel/Stones");

        stonesNumber = stone.gameObject.GetComponent <Stones>();
    }
Exemplo n.º 4
0
    void Awake()
    {
        GameObject numLabel = GameObject.Find("UI Root/Camera/Anchor-Center/KeySaleNumPanel/NumSprite/Label");

        numText = numLabel.gameObject.GetComponent <NumLabel>();
    }