().updateText(item);
+ }
+
+ }
+ }
+
+ public static string[] SplitStringByTags(string input, int maxLength)
+ {
+ // ʹÓÃÕýÔò±í´ïʽƥÅä ±êÇ©ÒÔ¼°ÆäÖеÄÄÚÈÝ
+ var regex = new System.Text.RegularExpressions.Regex(@"
(.*?)
");
+ var matches = regex.Matches(input);
+
+ // ÓÃÓÚ´æ´¢½á¹û
+ var resultList = new System.Collections.Generic.List();
+
+ foreach (System.Text.RegularExpressions.Match match in matches)
+ {
+ string line = match.Groups[1].Value; // »ñÈ¡ºÍ
Ö®¼äµÄÄÚÈÝ
+
+ if (line.Length > maxLength)
+ {
+ // Èç¹ûÐеij¤¶È´óÓÚmaxLength£¬Ôò²ð·Ö³É¶à¸ö×Ó×Ö·û´®
+ for (int i = 0; i < line.Length; i += maxLength)
+ {
+ int length = Math.Min(maxLength, line.Length - i);
+ resultList.Add(line.Substring(i, length));
+ }
+ }
+ else
+ {
+ resultList.Add(line);
+ }
+ }
+
+ return resultList.ToArray();
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/xiaofang/Assets/common/base/richText/RichText.cs.meta b/xiaofang/Assets/common/base/richText/RichText.cs.meta
new file mode 100644
index 00000000..6d19ec77
--- /dev/null
+++ b/xiaofang/Assets/common/base/richText/RichText.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e8f7862dad4a20e41b1cba0caced8a02
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/xiaofang/Assets/common/base/richText/TextItem.cs b/xiaofang/Assets/common/base/richText/TextItem.cs
new file mode 100644
index 00000000..73ced0fc
--- /dev/null
+++ b/xiaofang/Assets/common/base/richText/TextItem.cs
@@ -0,0 +1,17 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEngine.UI;
+
+public class TextItem : MonoBehaviour
+{
+ // Start is called before the first frame update
+ string text = "";
+ public Text textObj;
+
+ public void updateText(string text)
+ {
+ textObj.text = text;
+ this.text = text;
+ }
+}
diff --git a/xiaofang/Assets/common/base/richText/TextItem.cs.meta b/xiaofang/Assets/common/base/richText/TextItem.cs.meta
new file mode 100644
index 00000000..de7ddd30
--- /dev/null
+++ b/xiaofang/Assets/common/base/richText/TextItem.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 5090ecb3a8ac1844e97d10585aeee7f8
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/xiaofang/Assets/common/base/richText/richText.prefab b/xiaofang/Assets/common/base/richText/richText.prefab
new file mode 100644
index 00000000..fd8c51be
--- /dev/null
+++ b/xiaofang/Assets/common/base/richText/richText.prefab
@@ -0,0 +1,116 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!1 &9045295390659229329
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 9045295390659229328}
+ - component: {fileID: 9045295390659229335}
+ - component: {fileID: 9045295390659229334}
+ - component: {fileID: 9045295390659229332}
+ - component: {fileID: 9045295390659229333}
+ m_Layer: 5
+ m_Name: richText
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &9045295390659229328
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 9045295390659229329}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_ConstrainProportionsScale: 0
+ m_Children: []
+ m_Father: {fileID: 0}
+ m_RootOrder: 0
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0, y: 1}
+ m_AnchorMax: {x: 0, y: 1}
+ m_AnchoredPosition: {x: 472.68884, y: -409}
+ m_SizeDelta: {x: 945.3777, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!114 &9045295390659229335
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 9045295390659229329}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_Padding:
+ m_Left: 61
+ m_Right: 50
+ m_Top: 38
+ m_Bottom: 15
+ m_ChildAlignment: 0
+ m_Spacing: 0
+ m_ChildForceExpandWidth: 1
+ m_ChildForceExpandHeight: 1
+ m_ChildControlWidth: 1
+ m_ChildControlHeight: 0
+ m_ChildScaleWidth: 0
+ m_ChildScaleHeight: 0
+ m_ReverseArrangement: 0
+--- !u!114 &9045295390659229334
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 9045295390659229329}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: e8f7862dad4a20e41b1cba0caced8a02, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ textItem: {fileID: 558835775278395819, guid: 6efb80a40cba2eb419a3e3b04ef41d95, type: 3}
+ textTransform: {fileID: 9045295390659229328}
+--- !u!114 &9045295390659229332
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 9045295390659229329}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_HorizontalFit: 0
+ m_VerticalFit: 2
+--- !u!114 &9045295390659229333
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 9045295390659229329}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_IgnoreLayout: 0
+ m_MinWidth: -1
+ m_MinHeight: 818
+ m_PreferredWidth: -1
+ m_PreferredHeight: -1
+ m_FlexibleWidth: -1
+ m_FlexibleHeight: -1
+ m_LayoutPriority: 1
diff --git a/xiaofang/Assets/common/base/richText/richText.prefab.meta b/xiaofang/Assets/common/base/richText/richText.prefab.meta
new file mode 100644
index 00000000..2e9b7fbd
--- /dev/null
+++ b/xiaofang/Assets/common/base/richText/richText.prefab.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 34e251aed5d6a704d8b5e557ebd3f2ce
+PrefabImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/xiaofang/Assets/common/base/richText/textItem.prefab b/xiaofang/Assets/common/base/richText/textItem.prefab
new file mode 100644
index 00000000..8d0f922e
--- /dev/null
+++ b/xiaofang/Assets/common/base/richText/textItem.prefab
@@ -0,0 +1,282 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!1 &558835774724421752
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 558835774724421753}
+ - component: {fileID: 558835774724421732}
+ - component: {fileID: 558835774724421735}
+ - component: {fileID: 558835774724421734}
+ m_Layer: 5
+ m_Name: Text (Legacy)
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &558835774724421753
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835774724421752}
+ m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_ConstrainProportionsScale: 0
+ m_Children: []
+ m_Father: {fileID: 558835775278395816}
+ m_RootOrder: 0
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0, y: 1}
+ m_AnchorMax: {x: 0, y: 1}
+ m_AnchoredPosition: {x: 417.18884, y: -41}
+ m_SizeDelta: {x: 834.3777, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &558835774724421732
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835774724421752}
+ m_CullTransparentMesh: 1
+--- !u!114 &558835774724421735
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835774724421752}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_Material: {fileID: 0}
+ m_Color: {r: 0.43529412, g: 0.4, b: 0.39215687, a: 1}
+ m_RaycastTarget: 1
+ m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+ m_Maskable: 1
+ m_OnCullStateChanged:
+ m_PersistentCalls:
+ m_Calls: []
+ m_FontData:
+ m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
+ m_FontSize: 36
+ m_FontStyle: 0
+ m_BestFit: 0
+ m_MinSize: 3
+ m_MaxSize: 40
+ m_Alignment: 0
+ m_AlignByGeometry: 0
+ m_RichText: 1
+ m_HorizontalOverflow: 0
+ m_VerticalOverflow: 0
+ m_LineSpacing: 1
+ m_Text: "\u5F00\u670D\u671F\u95F4\u9080\u8BF7\u597D\u53CB\u53EF\u8D60\u9001\u798F\u5229\uFF01\n"
+--- !u!114 &558835774724421734
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835774724421752}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_HorizontalFit: 0
+ m_VerticalFit: 2
+--- !u!1 &558835775278395819
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 558835775278395816}
+ - component: {fileID: 558835775278395798}
+ - component: {fileID: 558835775278395817}
+ - component: {fileID: 5233847271531102684}
+ m_Layer: 5
+ m_Name: textItem
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &558835775278395816
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775278395819}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_ConstrainProportionsScale: 0
+ m_Children:
+ - {fileID: 558835774724421753}
+ - {fileID: 558835775750597766}
+ m_Father: {fileID: 0}
+ m_RootOrder: 0
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0, y: 1}
+ m_AnchorMax: {x: 0, y: 1}
+ m_AnchoredPosition: {x: 478.18884, y: -73.6582}
+ m_SizeDelta: {x: 834.3777, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!114 &558835775278395798
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775278395819}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_HorizontalFit: 0
+ m_VerticalFit: 2
+--- !u!114 &558835775278395817
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775278395819}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_Padding:
+ m_Left: 0
+ m_Right: 0
+ m_Top: 0
+ m_Bottom: 0
+ m_ChildAlignment: 0
+ m_Spacing: 12
+ m_ChildForceExpandWidth: 1
+ m_ChildForceExpandHeight: 1
+ m_ChildControlWidth: 1
+ m_ChildControlHeight: 1
+ m_ChildScaleWidth: 0
+ m_ChildScaleHeight: 0
+ m_ReverseArrangement: 0
+--- !u!114 &5233847271531102684
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775278395819}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 5090ecb3a8ac1844e97d10585aeee7f8, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ textObj: {fileID: 558835774724421735}
+--- !u!1 &558835775750597785
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 558835775750597766}
+ - component: {fileID: 558835775750597764}
+ - component: {fileID: 558835775750597767}
+ - component: {fileID: 4730459335855531252}
+ m_Layer: 5
+ m_Name: Image
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &558835775750597766
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775750597785}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_ConstrainProportionsScale: 0
+ m_Children: []
+ m_Father: {fileID: 558835775278395816}
+ m_RootOrder: 1
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0, y: 1}
+ m_AnchorMax: {x: 0, y: 1}
+ m_AnchoredPosition: {x: 417.18884, y: -95.5}
+ m_SizeDelta: {x: 834.3777, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &558835775750597764
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775750597785}
+ m_CullTransparentMesh: 1
+--- !u!114 &558835775750597767
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775750597785}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_Material: {fileID: 0}
+ m_Color: {r: 1, g: 1, b: 1, a: 1}
+ m_RaycastTarget: 1
+ m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+ m_Maskable: 1
+ m_OnCullStateChanged:
+ m_PersistentCalls:
+ m_Calls: []
+ m_Sprite: {fileID: 21300000, guid: dafe24c3322b8674e83db659604ec4b1, type: 3}
+ m_Type: 0
+ m_PreserveAspect: 0
+ m_FillCenter: 1
+ m_FillMethod: 4
+ m_FillAmount: 1
+ m_FillClockwise: 1
+ m_FillOrigin: 0
+ m_UseSpriteMesh: 0
+ m_PixelsPerUnitMultiplier: 1
+--- !u!114 &4730459335855531252
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 558835775750597785}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_HorizontalFit: 0
+ m_VerticalFit: 2
diff --git a/xiaofang/Assets/common/base/richText/textItem.prefab.meta b/xiaofang/Assets/common/base/richText/textItem.prefab.meta
new file mode 100644
index 00000000..db9d5f5a
--- /dev/null
+++ b/xiaofang/Assets/common/base/richText/textItem.prefab.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 6efb80a40cba2eb419a3e3b04ef41d95
+PrefabImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/xiaofang/Assets/comm/test.cs b/xiaofang/Assets/common/test.cs
similarity index 97%
rename from xiaofang/Assets/comm/test.cs
rename to xiaofang/Assets/common/test.cs
index 16b11f68..08668062 100644
--- a/xiaofang/Assets/comm/test.cs
+++ b/xiaofang/Assets/common/test.cs
@@ -410,15 +410,16 @@ public class test : MonoBehaviour
case "move.Location":
Debug.Log("move.Location½ÓÊܵ½ÁË");
- MoveResponse moveResponse = ProtoBufffer.DeSerialize(bytes);
- Debug.Log(moveResponse.MoveData);
- NpcData npcData = new NpcData();
- npcData = moveResponse.MoveData[0];
- RecuseNpc rn = GetComponent();
+ NpcData npcData = ProtoBufffer.DeSerialize(bytes);
+ Debug.Log(npcData);
float x = npcData.X;
float y = npcData.Y;
float z = npcData.Z;
- //rn.target.transform.position = new Vector3(x,y,z);
+ GameObject npc = GameObject.CreatePrimitive(PrimitiveType.Cube);
+ npc.transform.name = npcData.UserId;
+ npc.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
+ npc.transform.position = new Vector3(x, y + 0.25f, z);
+ npc.transform.parent = GameObject.Find("schoo103").transform;
break;
diff --git a/xiaofang/Assets/comm/test.cs.meta b/xiaofang/Assets/common/test.cs.meta
similarity index 100%
rename from xiaofang/Assets/comm/test.cs.meta
rename to xiaofang/Assets/common/test.cs.meta
diff --git a/xiaofang/Assets/common/test.meta b/xiaofang/Assets/common/test.meta
new file mode 100644
index 00000000..ed474549
--- /dev/null
+++ b/xiaofang/Assets/common/test.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 8793aaca69ae59144b8d5ec239fdd04e
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/xiaofang/Assets/common/test/test1.cs b/xiaofang/Assets/common/test/test1.cs
new file mode 100644
index 00000000..408daec5
--- /dev/null
+++ b/xiaofang/Assets/common/test/test1.cs
@@ -0,0 +1,20 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEngine.UI;
+
+public class test1 : Base
+{
+ // Start is called before the first frame update
+ async void Start()
+ {
+ GetComponent().sprite = await GlobalObj.GetComponent().LoadImageAsync("https://fantasymonster-app.oss-cn-hangzhou.aliyuncs.com/goods/mall/c7860d8909194d479b6f27ccb922e863.png");
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/xiaofang/Assets/common/test/test1.cs.meta b/xiaofang/Assets/common/test/test1.cs.meta
new file mode 100644
index 00000000..db4f3df0
--- /dev/null
+++ b/xiaofang/Assets/common/test/test1.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: c02b3c0b40de2c84c8cd8d2edb52f70d
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/xiaofang/Assets/comm/web.cs b/xiaofang/Assets/common/web.cs
similarity index 100%
rename from xiaofang/Assets/comm/web.cs
rename to xiaofang/Assets/common/web.cs
diff --git a/xiaofang/Assets/comm/web.cs.meta b/xiaofang/Assets/common/web.cs.meta
similarity index 100%
rename from xiaofang/Assets/comm/web.cs.meta
rename to xiaofang/Assets/common/web.cs.meta