コード例 #1
0
    /// <summary>
    /// 刷新弹跳提示框
    /// </summary>
    void UpdateSpringHint(string hintText)
    {
        GameObject item = GameObject.Instantiate(Resources.Load <GameObject>("Prefabs/UI/HintItem"));

        item.GetComponentInChildren <UILabel>().text = hintText;
        MyTools.BindChild(Grild.transform, item);

        Grild.repositionNow = true;
        StartCoroutine("DelayDestory", item);
    }