Hazim Bin Ijaz 4 weeks ago
commit 627867af71

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 02457a2ceb51287418d96b7653b34023
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 07b921dbfe3c07d48a27b2dbf3771316
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 4801615f90f5f5c4d95df1d1b0109fa7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 2c6ae6770bf5c334fba273c58cc41687
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: fb208f21b2e399f45a7648d064e6fb69
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 5e7d7e6aa85dfd04aa5ce01cc4f42b5c
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: ea3cab172bfebad4997f192ba43df8e3
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

@ -4,6 +4,8 @@ public class GameConstants
public static string LevelCompletedStatsKey = "LevelsCompleted"; public static string LevelCompletedStatsKey = "LevelsCompleted";
public static string NameEnteredCheckKey = "IsNameEntered"; public static string NameEnteredCheckKey = "IsNameEntered";
public static string AvatarSelectedCheckKey = "AvatarSelected";
public static string AvatarSelectedIndex = "AvatarSelectedIndex";
public static string DisplayNameKey = "DisplayName"; public static string DisplayNameKey = "DisplayName";
} }

@ -24,198 +24,226 @@ using UnityEngine.UI;
public class HomeScene : MonoBehaviour public class HomeScene : MonoBehaviour
{ {
[Header("Menu")] [Header("Menu")]
public TMP_Text starRanklbl; public TMP_Text starRanklbl;
public Text coinLbl; public Text coinLbl;
public Image starRankBar; public Image starRankBar;
public Sprite currentLevelImage; public Sprite currentLevelImage;
public GameObject groupList; public GameObject groupList;
[Header("Setting")] [Header("Setting")]
public Toggle soundToggle; public Toggle soundToggle;
public Toggle musicToggle; public Toggle musicToggle;
public Popup NameEnterPanel; public Popup NameEnterPanel;
public TMP_InputField nameInputField;
[Header("Level Detail View")]
[SerializeField]
private Popup LevelDetailPopup;
[SerializeField] public TMP_InputField nameInputField;
private Text LD_TitleLbl;
[SerializeField] [Header("Level Detail View")]
private Text LD_LevelCompletdLbl; [SerializeField]
private Popup LevelDetailPopup;
[SerializeField] [SerializeField]
private GameObject LD_AwardGoldImage; private Text LD_TitleLbl;
[SerializeField] [SerializeField]
private Image LD_BGImage; private Text LD_LevelCompletdLbl;
[SerializeField] [SerializeField]
private ScrollRect LD_scrollRect; private GameObject LD_AwardGoldImage;
[SerializeField] [SerializeField]
private Transform LD_parentContent; private Image LD_BGImage;
[SerializeField] [SerializeField]
private Button LD_prefabBtn; private ScrollRect LD_scrollRect;
[Header("")] [SerializeField]
public CanvasGroup[] canvasGroups; private Transform LD_parentContent;
public Popup[] popups; [SerializeField]
private Button LD_prefabBtn;
public static HomeScene instance; [Header("")]
public UnityEvent OnPlayButtonPressed; public CanvasGroup[] canvasGroups;
private List<int> ReverseNumbers = new List<int>{4, 6, 10, 12, 16, 18,22,24,28,30,34,36,40,42,46,48};
private void Start() public Popup[] popups;
{
instance = this; public static HomeScene instance;
public UnityEvent OnPlayButtonPressed;
private List<int> ReverseNumbers = new List<int> { 4, 6, 10, 12, 16, 18, 22, 24, 28, 30, 34, 36, 40, 42, 46, 48 };
public Button EnteredNameButton;
public List<Sprite> AvatarSprites;
public Sprite AvatarSelectedSprite;
private void Start()
{
instance = this;
OnPlayButtonPressed = new UnityEvent(); OnPlayButtonPressed = new UnityEvent();
CheckForDisplayName(); CheckForDisplayName();
SetupSettingToggle(); CheckForAvatar();
if (GameManager.openLevelSelection) SetupSettingToggle();
{ if (GameManager.openLevelSelection)
GameManager.openLevelSelection = false; {
List<LevelGroupButton> list = new List<LevelGroupButton>(groupList.GetComponentsInChildren<LevelGroupButton>()); GameManager.openLevelSelection = false;
if (GameManager.currentLevelGroup != null && list.Exists((LevelGroupButton obj) => obj.levelGroup.Equals(GameManager.currentLevelGroup))) List<LevelGroupButton> list = new List<LevelGroupButton>(groupList.GetComponentsInChildren<LevelGroupButton>());
{ if (GameManager.currentLevelGroup != null && list.Exists((LevelGroupButton obj) => obj.levelGroup.Equals(GameManager.currentLevelGroup)))
ShowDetailLevel(list.Find((LevelGroupButton obj) => obj.levelGroup.Equals(GameManager.currentLevelGroup))); {
} ShowDetailLevel(list.Find((LevelGroupButton obj) => obj.levelGroup.Equals(GameManager.currentLevelGroup)));
} }
Music.instance.Play(Music.Type.MainMusic); }
Application.targetFrameRate = 60; Music.instance.Play(Music.Type.MainMusic);
Application.targetFrameRate = 60;
}
}
private void CheckForDisplayName() private void CheckForAvatar()
{ {
int hasEnteredName = PlayerPrefs.GetInt(GameConstants.NameEnteredCheckKey, 0); int hasSelectedAvatar = PlayerPrefs.GetInt(GameConstants.AvatarSelectedCheckKey, 0);
if (hasEnteredName > 0) if (hasSelectedAvatar > 0)
{ {
string name = PlayerPrefs.GetString(GameConstants.DisplayNameKey); //string name = PlayerPrefs.GetString(GameConstants.DisplayNameKey);
PlayFabLeaderboards.DisplayName = name; //PlayFabLeaderboards.DisplayName = name;
} AvatarSelectedSprite = AvatarSprites[PlayerPrefs.GetInt(GameConstants.AvatarSelectedIndex)];
else }
{ else
NameEnterPanel.Open(); {
} if (!NameEnterPanel.isOpen)
} NameEnterPanel.Open();
public void OnDisplayNameEntered() }
{ }
PlayFabManager.Instance.playFabLeaderboards.SetDisplayName(nameInputField.text); private void CheckForDisplayName()
PlayerPrefs.SetInt(GameConstants.NameEnteredCheckKey,1); {
NameEnterPanel.Close(); int hasEnteredName = PlayerPrefs.GetInt(GameConstants.NameEnteredCheckKey, 0);
} if (hasEnteredName > 0)
{
private void SetupSettingToggle() string name = PlayerPrefs.GetString(GameConstants.DisplayNameKey);
{ PlayFabLeaderboards.DisplayName = name;
soundToggle.isOn = Sound.instance.IsEnabled(); }
musicToggle.isOn = Music.instance.IsEnabled(); else
soundToggle.onValueChanged.AddListener(delegate(bool arg0) {
{ if (!NameEnterPanel.isOpen)
Sound.instance.SetEnabled(arg0); NameEnterPanel.Open();
PlayButton();
});
musicToggle.onValueChanged.AddListener(delegate(bool arg0)
{
Music.instance.SetEnabled(arg0, updateMusic: true);
PlayButton();
});
UpdateUI();
}
public void UpdateUI()
{
coinLbl.text = GameManager.Coin + string.Empty;
starRanklbl.text = GameManager.StarLevel + string.Empty;
starRankBar.fillAmount = GameManager.StarLevelProgress;
}
public void ShowDetailLevel(LevelGroupButton lb)
{
int completedLevel = 0;
if(!GamePlayManager.isTimerLevel)
{
completedLevel = lb.levelGroup.CompletedLevel;
} }
else }
{ public void OnDisplayNameEntered()
completedLevel = lb.levelGroup.CompletedLevel_Timer; {
PlayFabManager.Instance.playFabLeaderboards.SetDisplayName(nameInputField.text);
PlayerPrefs.SetInt(GameConstants.NameEnteredCheckKey, 1);
NameEnterPanel.Close();
}
public void OnAvatarSelected(int AvatarID)
{
//PlayFabManager.Instance.playFabLeaderboards.SetDisplayName(nameInputField.text);
EnteredNameButton.interactable = true;
PlayerPrefs.SetInt(GameConstants.AvatarSelectedCheckKey, 1);
PlayerPrefs.SetInt(GameConstants.AvatarSelectedIndex, AvatarID);
AvatarSelectedSprite = AvatarSprites[AvatarID];
//NameEnterPanel.Close();
}
private void SetupSettingToggle()
{
soundToggle.isOn = Sound.instance.IsEnabled();
musicToggle.isOn = Music.instance.IsEnabled();
soundToggle.onValueChanged.AddListener(delegate (bool arg0)
{
Sound.instance.SetEnabled(arg0);
PlayButton();
});
musicToggle.onValueChanged.AddListener(delegate (bool arg0)
{
Music.instance.SetEnabled(arg0, updateMusic: true);
PlayButton();
});
UpdateUI();
}
public void UpdateUI()
{
coinLbl.text = GameManager.Coin + string.Empty;
starRanklbl.text = GameManager.StarLevel + string.Empty;
starRankBar.fillAmount = GameManager.StarLevelProgress;
}
public void ShowDetailLevel(LevelGroupButton lb)
{
int completedLevel = 0;
if (!GamePlayManager.isTimerLevel)
{
completedLevel = lb.levelGroup.CompletedLevel;
} }
LD_TitleLbl.text = lb.levelGroup.LevelGroupName.ToUpper(); else
LD_LevelCompletdLbl.text = completedLevel + " / " + lb.levelGroup.TotalLevel; {
// LD_AwardGoldImage.SetActive(completedLevel >= lb.levelGroup.TotalLevel); completedLevel = lb.levelGroup.CompletedLevel_Timer;
LD_BGImage.sprite = lb.levelGroup.LevelDetailBG; }
// LD_AwardGoldImage.GetComponentInParent<Image>().sprite = lb.AwardGoldImage.GetComponentInParent<Image>().sprite; LD_TitleLbl.text = lb.levelGroup.LevelGroupName.ToUpper();
// LD_LevelCompletdLbl.GetComponentInParent<Image>().sprite = lb.LevelCompletdLbl.GetComponentInParent<Image>().sprite; LD_LevelCompletdLbl.text = completedLevel + " / " + lb.levelGroup.TotalLevel;
for (int num = LD_parentContent.childCount - 1; num >= 0; num--) // LD_AwardGoldImage.SetActive(completedLevel >= lb.levelGroup.TotalLevel);
{ LD_BGImage.sprite = lb.levelGroup.LevelDetailBG;
UnityEngine.Object.DestroyImmediate(LD_parentContent.GetChild(0).gameObject); // LD_AwardGoldImage.GetComponentInParent<Image>().sprite = lb.AwardGoldImage.GetComponentInParent<Image>().sprite;
} // LD_LevelCompletdLbl.GetComponentInParent<Image>().sprite = lb.LevelCompletdLbl.GetComponentInParent<Image>().sprite;
for (int i = 0; i < lb.levelGroup.TotalLevel; i++) for (int num = LD_parentContent.childCount - 1; num >= 0; num--)
{ {
if (!ReverseNumbers.Contains(i + 1)) UnityEngine.Object.DestroyImmediate(LD_parentContent.GetChild(0).gameObject);
{ }
for (int i = 0; i < lb.levelGroup.TotalLevel; i++)
Button button = UnityEngine.Object.Instantiate(LD_prefabBtn, LD_parentContent); {
button.name = lb.levelGroup.LevelGroupName + "_" + (i + 1); if (!ReverseNumbers.Contains(i + 1))
button.GetComponentInChildren<Text>().text = i + 1 + string.Empty; {
Button button = UnityEngine.Object.Instantiate(LD_prefabBtn, LD_parentContent);
button.name = lb.levelGroup.LevelGroupName + "_" + (i + 1);
button.GetComponentInChildren<Text>().text = i + 1 + string.Empty;
//if (i <= completedLevel) //if (i <= completedLevel)
if (int.Parse(button.GetComponentInChildren<Text>().text)<=completedLevel+1) if (int.Parse(button.GetComponentInChildren<Text>().text) <= completedLevel + 1)
{ {
//if (i == completedLevel) //if (i == completedLevel)
if (button.GetComponentInChildren<Text>().text == (completedLevel+1).ToString()) if (button.GetComponentInChildren<Text>().text == (completedLevel + 1).ToString())
{ {
button.GetComponent<Image>().sprite = currentLevelImage; button.GetComponent<Image>().sprite = currentLevelImage;
button.GetComponentInChildren<ParticleSystem>(true).gameObject.SetActive(true); button.GetComponentInChildren<ParticleSystem>(true).gameObject.SetActive(true);
} }
button.interactable = true; button.interactable = true;
button.GetComponent<_2dxFX_GrayScale>().enabled = false; button.GetComponent<_2dxFX_GrayScale>().enabled = false;
button.GetComponent<Image>().color = Color.white; button.GetComponent<Image>().color = Color.white;
button.GetComponentInChildren<Text>().color = lb.levelGroup.bgColor; button.GetComponentInChildren<Text>().color = lb.levelGroup.bgColor;
int lNo = i + 1; int lNo = i + 1;
button.onClick.AddListener(delegate button.onClick.AddListener(delegate
{ {
GameManager.currentLevelGroup = lb.levelGroup; GameManager.currentLevelGroup = lb.levelGroup;
GameManager.CurrentLevelNo = lNo; GameManager.CurrentLevelNo = lNo;
SceneManager.LoadScene("GameScene"); SceneManager.LoadScene("GameScene");
PlayButton(); PlayButton();
}); });
} }
else else
{ {
button.interactable = false; button.interactable = false;
button.GetComponent<_2dxFX_GrayScale>().enabled = true; button.GetComponent<_2dxFX_GrayScale>().enabled = true;
button.GetComponent<Image>().color = lb.levelGroup.bgColor; button.GetComponent<Image>().color = lb.levelGroup.bgColor;
button.GetComponentInChildren<Text>().color = Color.white; button.GetComponentInChildren<Text>().color = Color.white;
} }
CustomUI CUI = button.gameObject.GetComponent<CustomUI>(); CustomUI CUI = button.gameObject.GetComponent<CustomUI>();
CUI.SetUi(i + 1, completedLevel); CUI.SetUi(i + 1, completedLevel);
} }
else else
{ {
int index=ReverseNumbers.IndexOf(i+1); int index = ReverseNumbers.IndexOf(i + 1);
if (index % 2 == 0) if (index % 2 == 0)
{ {
//index is 0,2,4,6,8 etc //index is 0,2,4,6,8 etc
Button button = UnityEngine.Object.Instantiate(LD_prefabBtn, LD_parentContent); Button button = UnityEngine.Object.Instantiate(LD_prefabBtn, LD_parentContent);
//button.name = lb.levelGroup.LevelGroupName + "_" + (i + 1); //button.name = lb.levelGroup.LevelGroupName + "_" + (i + 1);
button.name = lb.levelGroup.LevelGroupName + "_" + (ReverseNumbers[index+1]); button.name = lb.levelGroup.LevelGroupName + "_" + (ReverseNumbers[index + 1]);
button.GetComponentInChildren<Text>().text = ReverseNumbers[index + 1] + string.Empty; button.GetComponentInChildren<Text>().text = ReverseNumbers[index + 1] + string.Empty;
//if (i <= completedLevel) //if (i <= completedLevel)
//if (button.GetComponentInChildren<Text>().text == (completedLevel + 1).ToString()) //if (button.GetComponentInChildren<Text>().text == (completedLevel + 1).ToString())
if (int.Parse(button.GetComponentInChildren<Text>().text) <= completedLevel+1) if (int.Parse(button.GetComponentInChildren<Text>().text) <= completedLevel + 1)
{ {
if (i == completedLevel) if (i == completedLevel)
@ -246,8 +274,8 @@ public class HomeScene : MonoBehaviour
CustomUI CUI = button.gameObject.GetComponent<CustomUI>(); CustomUI CUI = button.gameObject.GetComponent<CustomUI>();
CUI.SetUi(ReverseNumbers[index + 1], completedLevel); CUI.SetUi(ReverseNumbers[index + 1], completedLevel);
} }
else else
{ {
Button button = UnityEngine.Object.Instantiate(LD_prefabBtn, LD_parentContent); Button button = UnityEngine.Object.Instantiate(LD_prefabBtn, LD_parentContent);
//button.name = lb.levelGroup.LevelGroupName + "_" + (i + 1); //button.name = lb.levelGroup.LevelGroupName + "_" + (i + 1);
button.name = lb.levelGroup.LevelGroupName + "_" + (ReverseNumbers[index - 1]); button.name = lb.levelGroup.LevelGroupName + "_" + (ReverseNumbers[index - 1]);
@ -286,75 +314,75 @@ public class HomeScene : MonoBehaviour
CustomUI CUI = button.gameObject.GetComponent<CustomUI>(); CustomUI CUI = button.gameObject.GetComponent<CustomUI>();
CUI.SetUi(ReverseNumbers[index - 1], completedLevel); CUI.SetUi(ReverseNumbers[index - 1], completedLevel);
} }
} }
} }
LD_scrollRect.verticalNormalizedPosition = 1f; LD_scrollRect.verticalNormalizedPosition = 1f;
LevelDetailPopup.Open(); LevelDetailPopup.Open();
} }
public void OnRateUs() public void OnRateUs()
{ {
Timer.Schedule(this, 0.4f, OnRate); Timer.Schedule(this, 0.4f, OnRate);
} }
public void OnRate() public void OnRate()
{ {
Sound.instance.PlayButton(); Sound.instance.PlayButton();
CUtils.OpenStore(); CUtils.OpenStore();
} }
public void OnSendFeedback() public void OnSendFeedback()
{ {
Sound.instance.PlayButton(); Sound.instance.PlayButton();
Application.OpenURL("mailto:" + GameConfig.instance.feedbackEmail); Application.OpenURL("mailto:" + GameConfig.instance.feedbackEmail);
} }
public void OnFB() public void OnFB()
{ {
Sound.instance.PlayButton(); Sound.instance.PlayButton();
CUtils.LikeFacebookPage(GameConfig.instance.facebookPageID); CUtils.LikeFacebookPage(GameConfig.instance.facebookPageID);
} }
public void PlayButton() public void PlayButton()
{ {
OnPlayButtonPressed.Invoke(); OnPlayButtonPressed.Invoke();
Sound.instance.PlayButton(); Sound.instance.PlayButton();
} }
public void PlayBackButton() public void PlayBackButton()
{ {
Sound.instance.PlayButton(Sound.Button.Back); Sound.instance.PlayButton(Sound.Button.Back);
} }
private void Update() private void Update()
{ {
if (!Input.GetKeyDown(KeyCode.Escape)) if (!Input.GetKeyDown(KeyCode.Escape))
{ {
return; return;
} }
bool flag = false; bool flag = false;
CanvasGroup[] array = canvasGroups; CanvasGroup[] array = canvasGroups;
foreach (CanvasGroup canvasGroup in array) foreach (CanvasGroup canvasGroup in array)
{ {
if (canvasGroup.alpha != 0f) if (canvasGroup.alpha != 0f)
{ {
flag = true; flag = true;
break; break;
} }
} }
Popup[] array2 = popups; Popup[] array2 = popups;
foreach (Popup popup in array2) foreach (Popup popup in array2)
{ {
if (popup.isOpen) if (popup.isOpen)
{ {
flag = true; flag = true;
break; break;
} }
} }
if (!flag) if (!flag)
{ {
Application.Quit(); Application.Quit();
} }
} }
} }

Loading…
Cancel
Save