Bug fixes

dev-ali
Ali Sharoz 7 days ago
parent 45f05aba8e
commit e0a5a69707

@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ButtonSoundAdder : MonoBehaviour
{
public Button[] AllButtons;
void Start()
{
if (AllButtons.Length == 0)
{
AllButtons = FindObjectsOfType<Button>();
for (int i = 0; i < AllButtons.Length; i++)
{
AllButtons[i].onClick.AddListener(() =>
{
Sound.instance.PlayButton(Sound.Button.Back);
});
}
}
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cc50748c3f058a94995b829453e642ce
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,47 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6735715112326351935
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 395310428236833428}
- component: {fileID: 9146290202529402156}
m_Layer: 0
m_Name: ButtonSoundAdder
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &395310428236833428
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6735715112326351935}
serializedVersion: 2
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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9146290202529402156
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6735715112326351935}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cc50748c3f058a94995b829453e642ce, type: 3}
m_Name:
m_EditorClassIdentifier:
AllButtons: []

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e988c5a811a849344a8dc56a31c3277d
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,101 @@
// using System.Collections;
// using System.Collections.Generic;
// using UnityEngine;
//
// public class DeviceSafeArea : MonoBehaviour
// {
// [SerializeField] private RectTransform Panel;
// public Vector4 offsetFromDevice;
// Rect LastSafeArea = new Rect(0, 0, 0, 0);
//
// void Awake()
// {
// Panel ??= GetComponent<RectTransform>();
// Refresh();
// }
//
// void Update()
//
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DeviceSafeArea : MonoBehaviour
{
[SerializeField] private RectTransform Panel;
public Vector4 offsetFromDevice = new Vector4(0, 47, 34, 0); // iphone 14 safe area offset
public Vector4 lastOffsetFromDevice;
[Space(5)] public Vector4 offsetFromDeviceLog;
Rect LastSafeArea = new Rect(0, 0, 0, 0);
void Awake()
{
Panel ??= GetComponent<RectTransform>();
lastOffsetFromDevice = offsetFromDevice;
Refresh();
}
void Update()
{
Refresh();
}
[ContextMenu("Refresh")]
public void Refresh()
{
Rect safeArea = GetSafeArea();
if (safeArea != LastSafeArea || (offsetFromDevice != lastOffsetFromDevice))
ApplySafeArea(safeArea);
}
Rect GetSafeArea()
{
return Screen.safeArea;
}
void ApplySafeArea(Rect r)
{
LastSafeArea = r;
#if UNITY_EDITOR
{
lastOffsetFromDevice = offsetFromDevice;
// Add manual offsets
r.x += offsetFromDevice.w; // Left offset
r.width -= offsetFromDevice.w + offsetFromDevice.x; // Right offset
r.y += offsetFromDevice.z; // Bottom offset
r.height -= offsetFromDevice.z + offsetFromDevice.y; // Top offset
}
#endif
// Convert safe area rectangle from absolute pixels to normalized anchor coordinates
Vector2 anchorMin = r.position;
Vector2 anchorMax = r.position + r.size;
anchorMin.x /= Screen.width;
anchorMin.y /= Screen.height;
anchorMax.x /= Screen.width;
anchorMax.y /= Screen.height;
Panel.anchorMin = anchorMin;
Panel.anchorMax = anchorMax;
CalculateMargin(r);
}
void CalculateMargin(Rect safeAreas)
{
float screenWidth = Screen.width;
float screenHeight = Screen.height;
var safeArea = safeAreas;
// Calculate the difference between safe area and screen size
float leftMargin = safeArea.x;
float rightMargin = screenWidth - (safeArea.x + safeArea.width);
float topMargin = screenHeight - (safeArea.y + safeArea.height);
float bottomMargin = safeArea.y;
offsetFromDeviceLog.w = leftMargin;
offsetFromDeviceLog.x = rightMargin;
offsetFromDeviceLog.y = topMargin;
offsetFromDeviceLog.z = bottomMargin;
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 843c5a62268dc7243bcf88054310fdcf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,183 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2841454134410498069
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7340193569768488633}
- component: {fileID: 3885656845593072640}
- component: {fileID: 7579012741215992196}
- component: {fileID: 2047007519730416167}
m_Layer: 5
m_Name: LoadingIcon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7340193569768488633
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2841454134410498069}
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_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: 0, y: -744}
m_SizeDelta: {x: 116, y: 116}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3885656845593072640
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2841454134410498069}
m_CullTransparentMesh: 1
--- !u!114 &7579012741215992196
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2841454134410498069}
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: 3c211ed28a1254ad5be923faa2874f0e, 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 &2047007519730416167
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2841454134410498069}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4d0390bd8b8ffd640b34fe25065ff1df, type: 3}
m_Name:
m_EditorClassIdentifier:
updateType: 0
isSpeedBased: 0
hasOnStart: 0
hasOnPlay: 0
hasOnUpdate: 0
hasOnStepComplete: 0
hasOnComplete: 0
hasOnTweenCreated: 0
hasOnRewind: 0
onStart:
m_PersistentCalls:
m_Calls: []
onPlay:
m_PersistentCalls:
m_Calls: []
onUpdate:
m_PersistentCalls:
m_Calls: []
onStepComplete:
m_PersistentCalls:
m_Calls: []
onComplete:
m_PersistentCalls:
m_Calls: []
onTweenCreated:
m_PersistentCalls:
m_Calls: []
onRewind:
m_PersistentCalls:
m_Calls: []
targetIsSelf: 1
targetGO: {fileID: 0}
tweenTargetIsTargetGO: 1
delay: 0
duration: 1
easeType: 1
easeCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
loopType: 0
loops: -1
id:
isRelative: 1
isFrom: 0
isIndependentUpdate: 0
autoKill: 1
isActive: 1
isValid: 1
target: {fileID: 7340193569768488633}
animationType: 3
targetType: 11
forcedTargetType: 0
autoPlay: 1
useTargetAsV3: 0
endValueFloat: 0
endValueV3: {x: 0, y: 0, z: 360}
endValueV2: {x: 0, y: 0}
endValueColor: {r: 1, g: 1, b: 1, a: 1}
endValueString:
endValueRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
endValueTransform: {fileID: 0}
optionalBool0: 0
optionalFloat0: 0
optionalInt0: 0
optionalRotationMode: 0
optionalScrambleMode: 0
optionalString:

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 68fee11129a275741be2c396aa20ceab
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -4523,8 +4523,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.021000002, y: 0.12100001}
m_AnchorMax: {x: 0.47700003, y: 0.734}
m_AnchoredPosition: {x: -0.49987793, y: 1.5}
m_SizeDelta: {x: 1.2600098, y: 1.6000061}
m_AnchoredPosition: {x: -0.49987793, y: -28.515001}
m_SizeDelta: {x: 1.2600098, y: -58.429996}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1287468363
GameObject:
@ -5417,7 +5417,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -27}
m_AnchoredPosition: {x: 0, y: -27.000061}
m_SizeDelta: {x: -303, y: -940}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1360839034
@ -7182,10 +7182,10 @@ RectTransform:
- {fileID: 551141782}
m_Father: {fileID: 1912179938}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.42200002, y: 0.256}
m_AnchorMax: {x: 0.82900006, y: 0.6694959}
m_AnchoredPosition: {x: -0.070007324, y: -0.09989929}
m_SizeDelta: {x: 0, y: 0.44000244}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 122.92999, y: -49.89}
m_SizeDelta: {x: 398, y: 87.44}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1692752203
GameObject:
@ -17184,10 +17184,10 @@ RectTransform:
- {fileID: 1287468364}
m_Father: {fileID: 1912179938}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.8880001, y: 0.20600002}
m_AnchorMax: {x: 0.984, y: 0.7042289}
m_AnchoredPosition: {x: -3, y: 1.4076996}
m_SizeDelta: {x: -1.7399902, y: 2.1187363}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 471, y: -41}
m_SizeDelta: {x: 92.26001, y: 107.11874}
m_Pivot: {x: 1, y: 0.5}
--- !u!224 &1790415148045805120
RectTransform:

@ -5516,6 +5516,46 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 246830134}
m_CullTransparentMesh: 1
--- !u!21 &248668269
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &256211124
GameObject:
m_ObjectHideFlags: 0
@ -6354,6 +6394,64 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 279365139}
m_CullTransparentMesh: 0
--- !u!1 &279831030
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 279831031}
- component: {fileID: 279831032}
m_Layer: 5
m_Name: SafeArea
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &279831031
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 279831030}
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: 1133887758}
- {fileID: 382341785}
- {fileID: 1836522265}
- {fileID: 1769816849}
- {fileID: 1292316430}
- {fileID: 1444235781}
m_Father: {fileID: 1326188069}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &279831032
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 279831030}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 843c5a62268dc7243bcf88054310fdcf, type: 3}
m_Name:
m_EditorClassIdentifier:
Panel: {fileID: 279831031}
offsetFromDevice: {x: 0, y: 47, z: 34, w: 0}
lastOffsetFromDevice: {x: 0, y: 0, z: 0, w: 0}
offsetFromDeviceLog: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &280431762
GameObject:
m_ObjectHideFlags: 0
@ -7737,6 +7835,53 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 312419656}
m_CullTransparentMesh: 1
--- !u!21 &318615647
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/Shiny_Reflect
m_Shader: {fileID: 4800000, guid: 6fc94ae14d17d3642b09718b5b932fd2, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex2:
m_Texture: {fileID: 2800000, guid: 6ed1aafd335608e48aa3198044a161df, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _Distortion: -0.18249941
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _Value2: 0.261
- _Value3: 0.53
- _Value4: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &321471955
GameObject:
m_ObjectHideFlags: 0
@ -8494,6 +8639,46 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 352759928}
m_CullTransparentMesh: 1
--- !u!21 &355092518
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &356194386
GameObject:
m_ObjectHideFlags: 0
@ -9459,12 +9644,12 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 382341784}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
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: 1326188069}
m_Father: {fileID: 279831031}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -10544,7 +10729,7 @@ PrefabInstance:
- target: {fileID: 4603273322937165292, guid: 3fe1e610ab27a064392b55794734a610,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -518.46014
value: -518.46027
objectReference: {fileID: 0}
- target: {fileID: 4603273322937165292, guid: 3fe1e610ab27a064392b55794734a610,
type: 3}
@ -11877,6 +12062,42 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 491399662}
m_CullTransparentMesh: 1
--- !u!1 &515482557
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 515482558}
m_Layer: 5
m_Name: SafeArea
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &515482558
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 515482557}
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: 2082521154}
m_Father: {fileID: 1166995541}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &522494079
GameObject:
m_ObjectHideFlags: 0
@ -16171,46 +16392,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764100370}
m_CullTransparentMesh: 1
--- !u!21 &764269652
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &764528284
GameObject:
m_ObjectHideFlags: 0
@ -19277,6 +19458,11 @@ PrefabInstance:
propertyPath: m_Material
value:
objectReference: {fileID: 1841394043}
- target: {fileID: 8662101125973322945, guid: 201a647bd788e1c4c9eaa7c569140daf,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -245.14941
objectReference: {fileID: 0}
- target: {fileID: 8703341771819606287, guid: 201a647bd788e1c4c9eaa7c569140daf,
type: 3}
propertyPath: m_Name
@ -20375,53 +20561,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 996169756}
m_CullTransparentMesh: 1
--- !u!21 &1002577874
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/Shiny_Reflect
m_Shader: {fileID: 4800000, guid: 6fc94ae14d17d3642b09718b5b932fd2, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex2:
m_Texture: {fileID: 2800000, guid: 6ed1aafd335608e48aa3198044a161df, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _Distortion: -0.09089899
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _Value2: 0.261
- _Value3: 0.53
- _Value4: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1008822984
GameObject:
m_ObjectHideFlags: 0
@ -22797,7 +22936,7 @@ PrefabInstance:
- target: {fileID: 4603273322937165292, guid: 3fe1e610ab27a064392b55794734a610,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -864.10004
value: -864.10016
objectReference: {fileID: 0}
- target: {fileID: 4603273322937165292, guid: 3fe1e610ab27a064392b55794734a610,
type: 3}
@ -23064,7 +23203,7 @@ RectTransform:
- {fileID: 1943962637}
- {fileID: 1764692936}
- {fileID: 1774503252}
m_Father: {fileID: 1326188069}
m_Father: {fileID: 279831031}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -23917,7 +24056,7 @@ RectTransform:
m_LocalScale: {x: 0, y: 0, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2082521154}
- {fileID: 515482558}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@ -27387,6 +27526,46 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1268625515}
m_CullTransparentMesh: 1
--- !u!21 &1273056971
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1276480984
GameObject:
m_ObjectHideFlags: 0
@ -27553,7 +27732,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1375396419}
m_Father: {fileID: 1326188069}
m_Father: {fileID: 279831031}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
@ -27713,7 +27892,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 1909484723}
m_Material: {fileID: 1720217726}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
@ -28454,12 +28633,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1133887758}
- {fileID: 382341785}
- {fileID: 1836522265}
- {fileID: 1769816849}
- {fileID: 1292316430}
- {fileID: 1444235781}
- {fileID: 279831031}
m_Father: {fileID: 1790415148045805377}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@ -30705,6 +30879,46 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1416460143}
m_CullTransparentMesh: 1
--- !u!21 &1417462644
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1420752884
GameObject:
m_ObjectHideFlags: 0
@ -31399,7 +31613,7 @@ RectTransform:
- {fileID: 902008755}
- {fileID: 1045843564}
- {fileID: 1790415148045805386}
m_Father: {fileID: 1326188069}
m_Father: {fileID: 279831031}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -33378,46 +33592,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1790415148045804941}
m_CullTransparentMesh: 1
--- !u!21 &1525726390
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1526271439
GameObject:
m_ObjectHideFlags: 0
@ -34482,46 +34656,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1790415148045804912}
m_CullTransparentMesh: 1
--- !u!21 &1607114474
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1613380508
GameObject:
m_ObjectHideFlags: 0
@ -35991,6 +36125,7 @@ MonoBehaviour:
EquipButton: {fileID: 542876888}
equipButtonText: {fileID: 939017511}
NotEnoughCoinsObj: {fileID: 1422425818}
LoadingScreen: {fileID: 0}
currentPurchaseType: 0
coinTxt: {fileID: 1790415148045805690}
AdsPurchasedWindow: {fileID: 0}
@ -36575,6 +36710,53 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1718500175}
m_CullTransparentMesh: 1
--- !u!21 &1720217726
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/Shiny_Reflect
m_Shader: {fileID: 4800000, guid: 6fc94ae14d17d3642b09718b5b932fd2, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex2:
m_Texture: {fileID: 2800000, guid: 6ed1aafd335608e48aa3198044a161df, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _Distortion: 1.2282149
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _Value2: 0.5
- _Value3: 1
- _Value4: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1720344709
GameObject:
m_ObjectHideFlags: 0
@ -36810,7 +36992,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 1002577874}
m_Material: {fileID: 318615647}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
@ -37873,7 +38055,7 @@ RectTransform:
m_Children:
- {fileID: 677928193}
- {fileID: 1790415148045805454}
m_Father: {fileID: 1326188069}
m_Father: {fileID: 279831031}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.031481482, y: 0.8555462}
m_AnchorMax: {x: 0.6324815, y: 0.9760001}
@ -38517,7 +38699,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1326188069}
m_Father: {fileID: 279831031}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
@ -39873,6 +40055,46 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900893649}
m_CullTransparentMesh: 1
--- !u!21 &1901217440
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1902230461
GameObject:
m_ObjectHideFlags: 0
@ -40143,53 +40365,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1908925083}
m_CullTransparentMesh: 1
--- !u!21 &1909484723
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/Shiny_Reflect
m_Shader: {fileID: 4800000, guid: 6fc94ae14d17d3642b09718b5b932fd2, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex2:
m_Texture: {fileID: 2800000, guid: 6ed1aafd335608e48aa3198044a161df, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _Distortion: 0.491194
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _Value2: 0.5
- _Value3: 1
- _Value4: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1914096871
GameObject:
m_ObjectHideFlags: 0
@ -40405,46 +40580,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1914735101}
m_CullTransparentMesh: 1
--- !u!21 &1917311071
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!21 &1917462382
Material:
serializedVersion: 8
@ -41088,46 +41223,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1957314459}
m_CullTransparentMesh: 1
--- !u!21 &1960649516
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DxFX/Standard/GrayScale
m_Shader: {fileID: 4800000, guid: 62ced1108742e2c4d99c2a6c0708300f, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Alpha: 0
- _ColorMask: 15
- _EffectAmount: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!1 &1961473724
GameObject:
m_ObjectHideFlags: 0
@ -43518,11 +43613,11 @@ RectTransform:
- {fileID: 1790415148045805445}
- {fileID: 1206281565}
- {fileID: 1485155971}
m_Father: {fileID: 1166995541}
m_Father: {fileID: 515482558}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -99.99951}
m_AnchoredPosition: {x: 0, y: -142.54}
m_SizeDelta: {x: 464.26, y: 124.599976}
m_Pivot: {x: 1, y: 0.5}
--- !u!1 &2088527481
@ -50363,7 +50458,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
m_AnchoredPosition: {x: 54, y: 0}
m_AnchoredPosition: {x: 54, y: -39.2}
m_SizeDelta: {x: 100, y: 116}
m_Pivot: {x: 0, y: 0.5}
--- !u!224 &1790415148045805286
@ -57153,7 +57248,7 @@ PrefabInstance:
- target: {fileID: 4603273322937165292, guid: 3fe1e610ab27a064392b55794734a610,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -172.81995
value: -172.81989
objectReference: {fileID: 0}
- target: {fileID: 4603273322937165292, guid: 3fe1e610ab27a064392b55794734a610,
type: 3}

@ -1488,187 +1488,130 @@ RectTransform:
type: 3}
m_PrefabInstance: {fileID: 1467084552}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2041176881
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2041176882}
- component: {fileID: 2041176884}
- component: {fileID: 2041176883}
- component: {fileID: 2041176885}
m_Layer: 5
m_Name: icon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2041176882
--- !u!224 &2041176882 stripped
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2041176881}
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: 408891932}
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: 0, y: -744}
m_SizeDelta: {x: 116, y: 116}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2041176883
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2041176881}
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: 3c211ed28a1254ad5be923faa2874f0e, 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!222 &2041176884
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
m_PrefabInstance: {fileID: 7318603046019886582}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2041176881}
m_CullTransparentMesh: 1
--- !u!114 &2041176885
MonoBehaviour:
--- !u!1001 &7318603046019886582
PrefabInstance:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2041176881}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4d0390bd8b8ffd640b34fe25065ff1df, type: 3}
m_Name:
m_EditorClassIdentifier:
updateType: 0
isSpeedBased: 0
hasOnStart: 0
hasOnPlay: 0
hasOnUpdate: 0
hasOnStepComplete: 0
hasOnComplete: 0
hasOnTweenCreated: 0
hasOnRewind: 0
onStart:
m_PersistentCalls:
m_Calls: []
onPlay:
m_PersistentCalls:
m_Calls: []
onUpdate:
m_PersistentCalls:
m_Calls: []
onStepComplete:
m_PersistentCalls:
m_Calls: []
onComplete:
m_PersistentCalls:
m_Calls: []
onTweenCreated:
m_PersistentCalls:
m_Calls: []
onRewind:
m_PersistentCalls:
m_Calls: []
targetIsSelf: 1
targetGO: {fileID: 0}
tweenTargetIsTargetGO: 1
delay: 0
duration: 1
easeType: 1
easeCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 408891932}
m_Modifications:
- target: {fileID: 2841454134410498069, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_Name
value: LoadingIcon
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_SizeDelta.x
value: 116
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_SizeDelta.y
value: 116
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
loopType: 0
loops: -1
id:
isRelative: 1
isFrom: 0
isIndependentUpdate: 0
autoKill: 1
isActive: 1
isValid: 1
target: {fileID: 2041176882}
animationType: 3
targetType: 11
forcedTargetType: 0
autoPlay: 1
useTargetAsV3: 0
endValueFloat: 0
endValueV3: {x: 0, y: 0, z: 360}
endValueV2: {x: 0, y: 0}
endValueColor: {r: 1, g: 1, b: 1, a: 1}
endValueString:
endValueRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
endValueTransform: {fileID: 0}
optionalBool0: 0
optionalFloat0: 0
optionalInt0: 0
optionalRotationMode: 0
optionalScrambleMode: 0
optionalString:
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -744
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7340193569768488633, guid: 68fee11129a275741be2c396aa20ceab,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 68fee11129a275741be2c396aa20ceab, type: 3}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0

@ -58,6 +58,8 @@ public class ShopManager : MonoBehaviour, IDetailedStoreListener
public List<ButtonState> EffectButtons;
//public List<Button> PurchaseButtons;
public GameObject NotEnoughCoinsObj;
public GameObject LoadingScreen;
[Serializable]
public class ButtonState
{
@ -226,6 +228,7 @@ public class ShopManager : MonoBehaviour, IDetailedStoreListener
{
//AddCoins(50);
currentPurchaseType = PurchaseType.Coins;
LoadingScreen.SetActive(true);
m_StoreController.InitiatePurchase(cItem[index].Id);
}
public void Consumable_Btn_Pressed_Pipes(int index)
@ -233,6 +236,7 @@ public class ShopManager : MonoBehaviour, IDetailedStoreListener
//AddCoins(50);
currentPurchaseType = PurchaseType.Pipes;
Debug.Log("Purchasing pipes1... : " + pItem[index].Id);
LoadingScreen.SetActive(true);
m_StoreController.InitiatePurchase(pItem[index].Id);
//Debug.Log("Purchasing pipes2... : "+ pItem[index].Id);
}
@ -242,19 +246,6 @@ public class ShopManager : MonoBehaviour, IDetailedStoreListener
AddEffects(index);
}
//public void NonConsumable_Btn_Pressed()
//{
// //RemoveAds();
// m_StoreContoller.InitiatePurchase(ncItem.Id);
//}
//public void Subscription_Btn_Pressed()
//{
// //ActivateElitePass();
// m_StoreContoller.InitiatePurchase(sItem.Id);
//}
#endregion
public PurchaseType currentPurchaseType;
public enum PurchaseType
@ -270,6 +261,8 @@ public class ShopManager : MonoBehaviour, IDetailedStoreListener
var product = purchaseEvent.purchasedProduct;
print("Purchase Complete" + product.definition.id + " Purchase Type: " + currentPurchaseType.ToString());
LoadingScreen.SetActive(false);
if (currentPurchaseType == PurchaseType.Coins)
{
for (int h = 0; h < cItem.Count; h++)
@ -432,22 +425,23 @@ public class ShopManager : MonoBehaviour, IDetailedStoreListener
public void OnInitializeFailed(InitializationFailureReason error)
{
print("failed" + error);
LoadingScreen.SetActive(false);
}
public void OnInitializeFailed(InitializationFailureReason error, string message)
{
LoadingScreen.SetActive(false);
print("initialize failed" + error + message);
}
public void OnPurchaseFailed(Product product, PurchaseFailureReason failureReason)
{
LoadingScreen.SetActive(false);
print("purchase failed" + failureReason);
}
public void OnPurchaseFailed(Product product, PurchaseFailureDescription failureDescription)
{
LoadingScreen.SetActive(false);
print("purchase failed" + failureDescription);
}
#endregion

@ -1,6 +1,7 @@
{
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.device-simulator.devices": "1.0.0",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ide.vscode": "1.2.5",

@ -6,6 +6,13 @@
"source": "builtin",
"dependencies": {}
},
"com.unity.device-simulator.devices": {
"version": "1.0.0",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.ext.nunit": {
"version": "1.0.6",
"depth": 1,

Loading…
Cancel
Save