牌组位置

This commit is contained in:
mnjnhuang 2025-11-24 00:06:41 +08:00
parent e3e2aa21fc
commit f9414a017e
2 changed files with 56 additions and 2 deletions

View File

@ -30,6 +30,7 @@ public class Character : MonoBehaviour
{
GameObject _card = Instantiate<GameObject>(cardGo, transform.position, Quaternion.identity, parent: cardDeckContainer);
_card.SetActive(false);
_card.transform.localPosition = Vector3.zero;
int cardID = ID + ownedCardPrefabList.IndexOf(cardGo) + 1;
_card.name = $"card_{cardID}";
Card cardComponent = _card.GetComponent<Card>();

View File

@ -1354,6 +1354,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 686000154}
- component: {fileID: 686000155}
m_Layer: 0
m_Name: CardDeckContainer
m_TagString: Untagged
@ -1370,12 +1371,64 @@ Transform:
m_GameObject: {fileID: 686000153}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalPosition: {x: -8, y: -4, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 1723037350}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &686000155
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 686000153}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: -2125781425
m_SortingLayer: 3
m_SortingOrder: 0
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 0.16, y: 0.16}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &705744322
GameObject:
m_ObjectHideFlags: 0