修改脚本

This commit is contained in:
huangjiayu 2023-09-17 16:40:47 +08:00
parent 5f1c5a01b5
commit 517e50cac5
2 changed files with 12 additions and 12 deletions

View File

@ -44,7 +44,7 @@ public class ShowNameplate : MonoBehaviour
NameplateController.Instance.backTransform.sizeDelta = bg / multiple + new Vector2(40, 40); NameplateController.Instance.backTransform.sizeDelta = bg / multiple + new Vector2(40, 40);
NameplateController.Instance.NameplateImage.rectTransform.sizeDelta = bg / multiple; NameplateController.Instance.NameplateImage.rectTransform.sizeDelta = bg / multiple;
//NameplateController.Instance.mtTransform.sizeDelta = new Vector2(NameplateController.Instance.backTransform.sizeDelta.x, mt.y); NameplateController.Instance.mtTransform.sizeDelta = new Vector2(NameplateController.Instance.backTransform.sizeDelta.x, 100f);
NameplateController.Instance.DictextMeshPro[myName].text = "300"; NameplateController.Instance.DictextMeshPro[myName].text = "300";
NameplateController.Instance.DictextMeshPro[myName].gameObject.SetActive(true); NameplateController.Instance.DictextMeshPro[myName].gameObject.SetActive(true);

View File

@ -26691,7 +26691,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6755863427580837633, guid: 7632f60f8b4d7e5498cf37829513abe7, type: 3} - target: {fileID: 6755863427580837633, guid: 7632f60f8b4d7e5498cf37829513abe7, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 23 value: 22
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6755863427580837633, guid: 7632f60f8b4d7e5498cf37829513abe7, type: 3} - target: {fileID: 6755863427580837633, guid: 7632f60f8b4d7e5498cf37829513abe7, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
@ -32256,7 +32256,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: c494ecc284aba354aae4fc93fffe7399, type: 3} - target: {fileID: -8679921383154817045, guid: c494ecc284aba354aae4fc93fffe7399, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 20 value: 19
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: c494ecc284aba354aae4fc93fffe7399, type: 3} - target: {fileID: -8679921383154817045, guid: c494ecc284aba354aae4fc93fffe7399, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
@ -41908,7 +41908,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 19 m_RootOrder: 20
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1064186729 --- !u!114 &1064186729
MonoBehaviour: MonoBehaviour:
@ -54455,7 +54455,7 @@ Transform:
m_Children: m_Children:
- {fileID: 772200475} - {fileID: 772200475}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1437685154 --- !u!1001 &1437685154
PrefabInstance: PrefabInstance:
@ -67573,7 +67573,7 @@ Canvas:
m_SortingBucketNormalizedSize: 0 m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 25 m_AdditionalShaderChannelsFlag: 25
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingOrder: 1 m_SortingOrder: 3
m_TargetDisplay: 0 m_TargetDisplay: 0
--- !u!224 &1797272991 --- !u!224 &1797272991
RectTransform: RectTransform:
@ -71883,7 +71883,7 @@ PrefabInstance:
m_Modifications: m_Modifications:
- target: {fileID: -8679921383154817045, guid: 48e36ea59837ea244852e73183f1a373, type: 3} - target: {fileID: -8679921383154817045, guid: 48e36ea59837ea244852e73183f1a373, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 11 value: 10
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 48e36ea59837ea244852e73183f1a373, type: 3} - target: {fileID: -8679921383154817045, guid: 48e36ea59837ea244852e73183f1a373, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
@ -75291,7 +75291,7 @@ Transform:
- {fileID: 1446289608} - {fileID: 1446289608}
- {fileID: 696764694} - {fileID: 696764694}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 22 m_RootOrder: 23
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1987230714 --- !u!1 &1987230714
GameObject: GameObject:
@ -82447,7 +82447,7 @@ Transform:
- {fileID: 8278156440674586169} - {fileID: 8278156440674586169}
- {fileID: 1472106633} - {fileID: 1472106633}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 10 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &554189251323931874 --- !u!114 &554189251323931874
MonoBehaviour: MonoBehaviour:
@ -92170,7 +92170,7 @@ Transform:
- {fileID: 4250994751310936222} - {fileID: 4250994751310936222}
- {fileID: 2401820166598484376} - {fileID: 2401820166598484376}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 83.982, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 83.982, z: 0}
--- !u!33 &2401820165377604995 --- !u!33 &2401820165377604995
MeshFilter: MeshFilter:
@ -94661,7 +94661,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2943890895030514615, guid: b0ae79ef714b1b24281e54076b37a93a, type: 3} - target: {fileID: 2943890895030514615, guid: b0ae79ef714b1b24281e54076b37a93a, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 6 value: 5
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2943890895030514615, guid: b0ae79ef714b1b24281e54076b37a93a, type: 3} - target: {fileID: 2943890895030514615, guid: b0ae79ef714b1b24281e54076b37a93a, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
@ -128688,7 +128688,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5537173360887175222, guid: 15526cc793435654cad09098a46a9caf, type: 3} - target: {fileID: 5537173360887175222, guid: 15526cc793435654cad09098a46a9caf, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 2 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5537173360887175222, guid: 15526cc793435654cad09098a46a9caf, type: 3} - target: {fileID: 5537173360887175222, guid: 15526cc793435654cad09098a46a9caf, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x