Fixed multiple chest reward pop ups

This commit is contained in:
Max 2025-02-25 11:00:07 +01:00
parent ac4771f1da
commit 1199fe69b5
2 changed files with 112 additions and 4 deletions

View file

@ -255,7 +255,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 171.10999, y: -237}
m_AnchoredPosition: {x: 160.8, y: -237}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &60872505
@ -312,7 +312,7 @@ MonoBehaviour:
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_HorizontalAlignment: 4
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
@ -612,7 +612,8 @@ MonoBehaviour:
maxHealth: 20
diamonds: 0
healthGO: {fileID: 1728296560}
DiamondsGO: {fileID: 60872503}
diamondsGO: {fileID: 60872503}
rooms: {fileID: 0}
--- !u!114 &386902760
MonoBehaviour:
m_ObjectHideFlags: 0
@ -2238,6 +2239,7 @@ RectTransform:
- {fileID: 2099449970}
- {fileID: 379942241}
- {fileID: 748138896}
- {fileID: 1804910034}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@ -2844,6 +2846,112 @@ GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1775902214}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1804910033
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1353551474}
m_Modifications:
- target: {fileID: 6007503688929917977, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_Name
value: ChestPopUp
objectReference: {fileID: 0}
- target: {fileID: 6007503688929917977, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_SizeDelta.x
value: 293.24768
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_SizeDelta.y
value: 164.10168
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
--- !u!224 &1804910034 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
m_PrefabInstance: {fileID: 1804910033}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1814678931
GameObject:
m_ObjectHideFlags: 0

View file

@ -12,6 +12,6 @@ public class UIManager : MonoBehaviour
private void HandleChestRewarded()
{
Instantiate(chestRewardSelectionUI, canvas.transform);
chestRewardSelectionUI.SetActive(true);
}
}