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); }
void UpdateAvatar() { Reception recp = GameObject.Find("Reception").GetComponent <Reception>(); recp.UpdateProfileHeadImgUrl(DialogSelectAvatar.GetInstance().HeadIndex.ToString()); }