From e2481fde771fdb5cb062bfd02722a4e0c94cd0d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Fri, 7 Feb 2025 19:41:57 +0900 Subject: [PATCH] =?UTF-8?q?sln=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - Assets/1_Script/ItemPrefab.cs | 5 +++- Assets/1_Script/SearchCtrl.cs | 6 ++-- Assets/1_Script/System/NetworkManager.cs | 8 +++++ Unity_Web.sln | 38 ++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 Unity_Web.sln diff --git a/.gitignore b/.gitignore index 8df2043..21d0150 100644 --- a/.gitignore +++ b/.gitignore @@ -435,7 +435,6 @@ ExportedObj/ .consulo/ *.csproj *.unityproj -*.sln *.suo *.tmp *.user diff --git a/Assets/1_Script/ItemPrefab.cs b/Assets/1_Script/ItemPrefab.cs index 723560d..90efd14 100644 --- a/Assets/1_Script/ItemPrefab.cs +++ b/Assets/1_Script/ItemPrefab.cs @@ -9,8 +9,11 @@ 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; @@ -33,7 +36,7 @@ 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() diff --git a/Assets/1_Script/SearchCtrl.cs b/Assets/1_Script/SearchCtrl.cs index 4035f1e..c1a113e 100644 --- a/Assets/1_Script/SearchCtrl.cs +++ b/Assets/1_Script/SearchCtrl.cs @@ -97,8 +97,8 @@ public class SearchCtrl : SingletonMonoBehaviour results.gameObject.SetActive(true); listTop.SetActive(true); bar.SetActive(true); - ItemPrefab[] items = new ItemPrefab[5]; - for (int n = 0; n < 5; n++) + ItemPrefab[] items = new ItemPrefab[data.data.Count]; + for (int n = 0; n < data.data.Count; n++) { GameObject prefab = Instantiate(item, results); itemPrefabs.Add(prefab); @@ -142,7 +142,7 @@ public class SearchCtrl : SingletonMonoBehaviour 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); } diff --git a/Assets/1_Script/System/NetworkManager.cs b/Assets/1_Script/System/NetworkManager.cs index d06217b..4bbddfa 100644 --- a/Assets/1_Script/System/NetworkManager.cs +++ b/Assets/1_Script/System/NetworkManager.cs @@ -2,6 +2,8 @@ using UnityEngine; using BestHTTP; using System; using Newtonsoft.Json; +using MEC; +using System.Collections.Generic; public class NetworkManager : SingletonMonoBehaviour @@ -73,4 +75,10 @@ public class NetworkManager : SingletonMonoBehaviour httpRquest.Send(); return httpRquest; } + + private IEnumerator Sendearch() + { + //Timing.RunCoroutine(BuildingSet()); + yield return Timing.WaitForSeconds(0.1f); + } } diff --git a/Unity_Web.sln b/Unity_Web.sln new file mode 100644 index 0000000..31c99ac --- /dev/null +++ b/Unity_Web.sln @@ -0,0 +1,38 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BestHTTP", "BestHTTP.csproj", "{B4248250-48E2-544F-260F-045B1BDF8029}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{C66B2060-3574-3445-45C9-F5C893B4C144}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-firstpass", "Assembly-CSharp-firstpass.csproj", "{5E4A35A6-77F8-C45C-559F-2C6B8EFB2370}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{E0945D25-8040-0E53-AAE4-62B626709D83}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B4248250-48E2-544F-260F-045B1BDF8029}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B4248250-48E2-544F-260F-045B1BDF8029}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B4248250-48E2-544F-260F-045B1BDF8029}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B4248250-48E2-544F-260F-045B1BDF8029}.Release|Any CPU.Build.0 = Release|Any CPU + {C66B2060-3574-3445-45C9-F5C893B4C144}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C66B2060-3574-3445-45C9-F5C893B4C144}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C66B2060-3574-3445-45C9-F5C893B4C144}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C66B2060-3574-3445-45C9-F5C893B4C144}.Release|Any CPU.Build.0 = Release|Any CPU + {5E4A35A6-77F8-C45C-559F-2C6B8EFB2370}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5E4A35A6-77F8-C45C-559F-2C6B8EFB2370}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5E4A35A6-77F8-C45C-559F-2C6B8EFB2370}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5E4A35A6-77F8-C45C-559F-2C6B8EFB2370}.Release|Any CPU.Build.0 = Release|Any CPU + {E0945D25-8040-0E53-AAE4-62B626709D83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E0945D25-8040-0E53-AAE4-62B626709D83}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E0945D25-8040-0E53-AAE4-62B626709D83}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E0945D25-8040-0E53-AAE4-62B626709D83}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal