This commit is contained in:
yzx 2024-06-06 17:34:43 +08:00
parent 55a3ac2b04
commit d4fc0b6c86
6 changed files with 334 additions and 539 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ SXElectricityInformationAcquisition/.vs/
/SXElectricityInformationAcquisition/.idea
/SXElectricityInformationAcquisition/.vs
/SXElectricityInformationAcquisition/obj
*.csproj

File diff suppressed because it is too large Load Diff

View File

@ -1937,6 +1937,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 1013479120}
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
m_MethodName: SetActive
m_Mode: 6
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &725820388
MonoBehaviour:
m_ObjectHideFlags: 0
@ -2058,6 +2070,63 @@ MeshFilter:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 756157321}
m_Mesh: {fileID: -7434549690534084444, guid: 156cca832bad49447b16a92685b1fa5b, type: 3}
--- !u!1001 &822250774
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 977084344072621036, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_Name
value: "\u5DE5\u5177"
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7320849967194322988, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 7e42ad4821305374ba380adcf42bf09b, type: 3}
--- !u!4 &884099591 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -1203128980051872146, guid: fe4c1814d44af964c94c33808b704426, type: 3}
@ -5279,3 +5348,4 @@ SceneRoots:
- {fileID: 1445069127}
- {fileID: 179475878}
- {fileID: 520819557}
- {fileID: 822250774}

View File

@ -38,6 +38,8 @@ public class CharacterMirrorManager : MonoBehaviour
private IEnumerator FadeIn(Image image, float duration)
{
image.gameObject.SetActive(true);
// 初始化透明度为0
Color color = image.color;
color.a = 0f;
@ -57,7 +59,7 @@ public class CharacterMirrorManager : MonoBehaviour
// 确保透明度设置为1
color.a = 1f;
image.color = color;
image.raycastTarget = true;
window.SetActive(true);
}
}

View File

@ -1,20 +0,0 @@
using System.Collections.Generic;
using UnityEngine;
// 定义装备类
[CreateAssetMenu(fileName = "New Equipment", menuName = "Inventory/Equipment")]
public class Equipment : ScriptableObject
{
public string equipmentName; // 装备名称
public EquipmentType equipmentType; // 装备类型(头部、身体、手部、腿部)
public List<GameObject> equipmentPrefab; // 装备对应的预制体
}
// 定义装备类型枚举
public enum EquipmentType
{
Head,
Body,
Hand,
Leg
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 3c732e037b4f44109ae096265786fe50
timeCreated: 1717644539