Exemple #1
0
    public static GameObject GetHeadObject(string headImgUrl)
    {
        string     headStr = "Head" + headImgUrl;
        GameObject goSrc   = null;
        Transform  tf      =
            DialogSelectAvatar.GetInstance().transform.Find("main").
            transform.Find("Avatars").
            transform.Find("GridLayeout").
            transform.Find(headStr);

        if (tf != null)
        {
            goSrc = tf.gameObject;
        }

        return(goSrc);
    }
Exemple #2
0
    void UpdateAvatar()
    {
        Reception recp = GameObject.Find("Reception").GetComponent <Reception>();

        recp.UpdateProfileHeadImgUrl(DialogSelectAvatar.GetInstance().HeadIndex.ToString());
    }