잘못 올라간 코드 롤백
This commit is contained in:
parent
e2481fde77
commit
b86363d7ff
|
|
@ -9,11 +9,8 @@ public class ItemPrefab : MonoBehaviour
|
|||
[SerializeField] TMP_Text ownerName;
|
||||
[SerializeField] Image suitImage;
|
||||
|
||||
public bool isNetWork;
|
||||
|
||||
public void Set(Library library)
|
||||
{
|
||||
isNetWork = true;
|
||||
this.library = library;
|
||||
suitName.text = library.suit_name;
|
||||
ownerName.text = library.owner_name;
|
||||
|
|
@ -36,7 +33,6 @@ public class ItemPrefab : MonoBehaviour
|
|||
float size = rect.sizeDelta.y / 500;
|
||||
Vector2 newSize = new Vector2(rect.sizeDelta.x / size, rect.sizeDelta.y /size);
|
||||
rect.sizeDelta = newSize;
|
||||
isNetWork = false;
|
||||
}
|
||||
|
||||
public void Button()
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ public class SearchCtrl : SingletonMonoBehaviour<SearchCtrl>
|
|||
NetworkManager.Instance.CreateImageRequest(library.imageBase64.Substring(1), new object(), (data) =>
|
||||
{
|
||||
library._suit_image = Sprite.Create(data, new Rect(0, 0, data.width, data.height), new Vector2(0.5f, 0.5f));
|
||||
//itemPrefab.ImageSet();
|
||||
itemPrefab.ImageSet();
|
||||
}, null, BestHTTP.HTTPMethods.Get);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue