Base game sfx done

This commit is contained in:
Sewmina 2022-10-06 23:45:04 +05:30
parent e162647e26
commit 0e84d63e63
236 changed files with 80606 additions and 224 deletions

View File

@ -347,6 +347,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
syncMode: 0
syncInterval: 0.1
ready: 0
playerImg: {fileID: 5431987895376475547}
skins: {fileID: 11400000, guid: 085f62d85d5b1b140ac6f9a15daf8767, type: 2}
skinName:
@ -354,14 +355,15 @@ MonoBehaviour:
Scores: 0
Kills: 0
trailTime: 0
trailIncrementRate: 0.5
moonsCollected: 0
trailIncrementRate: 0.25
dead: 0
speed: 0
scaleMultiplier: 1
_scaleMultiplier: 0.05
pnameTxt: {fileID: 1318931860792545326}
body: {fileID: 5431987895376475546}
trailMgr: {fileID: 5995183602835295541}
movingSpeed: 0.1
movingSpeed: 0.2
turningSmoothFactor: 0.1
joystick: {fileID: 0}
joyInput: {x: 0, y: 0}
@ -371,7 +373,7 @@ MonoBehaviour:
RotationDetour: {x: 0, y: 0, z: 0, w: 1}
DetourCorrectionFactor: 0.05
timeDelayErrorFix: 1
showDebugHUD: 1
showDebugHUD: 0
distanceFromCenter: 0
--- !u!114 &5995183602835295541
MonoBehaviour:

8
Assets/Game/SFX.meta Normal file
View File

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

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: def65c5b5eaff8f1a993a10f0e105cbd
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 277a1e549f529d521be1e240555d717f
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 2f6258fb61a2f93528964372c0da0ce6
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 094a4e8f00ee1825ba7ef76d5e89cbdb
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 6eb61a06c187d0d39a084641039464d4
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 525e3d62b74b84073911b1049afdb6f3
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: cafe8268e7876f3ba967ffb2b92780a4
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 9f1ac9b8c7d09ab85b3f03b522ec5a25
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 6ee385c3cf6195ff9b9fe2320a7f68f5
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 8bd54d2a8e15d0591859eb1c1214de9a
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 930f4d9aaf679a653b5f8836ae45fa0a
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: efd24feac7087f3bc9cd4f79c82c62d4
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: b0d82b24141194d4884386c7beba1270
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 1d4ad21dca46be4dd80cc19e6305863e
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 7f12e31c31eb1bb14983d44de30945a1
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 6ab6fdf55faae90d3840d8fd46615ce7
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 140c3eadae01f0ff49cb7184405f73e1
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: b4fd21ad3ac0d1d588eed18aa91b3290
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 27fd785457bba40fa946267bd8cb9d3a
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: bcb9ed8d6b20aed75aff809dd5d0b57b
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: eb8d77b94d685a6b2b6bac8235764974
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 789978f6822b95af4bd9e8dec28aff7d
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 735f302658c4a08f0980a058d5940416
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: f02a79c1c7ba356bead7ec36bead7a00
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: a278181ad20d2aa8a99e79a912809d4a
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 7437cc90be9e37596ad1980b6539d7cd
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 5d59146b74e077cb2865de44a6a9a347
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -24765,6 +24765,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIPopup
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
--- !u!1001 &125814719
PrefabInstance:
m_ObjectHideFlags: 0
@ -43767,6 +43779,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIClick
m_Mode: 1
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 &234399498
MonoBehaviour:
m_ObjectHideFlags: 0
@ -46006,6 +46030,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIPopup
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
--- !u!114 &244868438
MonoBehaviour:
m_ObjectHideFlags: 0
@ -63354,6 +63390,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIClick
m_Mode: 1
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 &315730690
MonoBehaviour:
m_ObjectHideFlags: 0
@ -66587,7 +66635,6 @@ ParticleSystemRenderer:
m_RendererPriority: 0
m_Materials:
- {fileID: 10308, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -108922,6 +108969,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIPopup
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
--- !u!114 &471636505
MonoBehaviour:
m_ObjectHideFlags: 0
@ -126262,6 +126321,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIClick
m_Mode: 1
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 &576280697
MonoBehaviour:
m_ObjectHideFlags: 0
@ -142650,32 +142721,56 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 6
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Mode
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 120157230}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Target
value:
objectReference: {fileID: 981461002}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: SetActive
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_MethodName
value: PlayUIClick
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: UnityEngine.GameObject, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_TargetAssemblyTypeName
value: AudioManagerHelper, Assembly-CSharp
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 8971760074084985564, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_Enabled
value: 0
@ -143650,7 +143745,6 @@ ParticleSystemRenderer:
m_RendererPriority: 0
m_Materials:
- {fileID: 10308, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -156192,7 +156286,6 @@ ParticleSystemRenderer:
m_RendererPriority: 0
m_Materials:
- {fileID: 0}
- {fileID: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -198644,11 +198737,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 53edd1304ce7ec14fa61e457a4745d7a, type: 3}
m_Name:
m_EditorClassIdentifier:
Camera: {fileID: 0}
Rotate: 0
DecreaseCameraPanSpeed: 1
CameraUpperHeightBound: 0
CameraLowerHeightBound: 0
--- !u!4 &828023762
Transform:
m_ObjectHideFlags: 0
@ -225012,6 +225100,7 @@ GameObject:
- component: {fileID: 981460999}
- component: {fileID: 981461000}
- component: {fileID: 981461001}
- component: {fileID: 981461002}
m_Layer: 0
m_Name: GameManager
m_TagString: Untagged
@ -225111,6 +225200,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 209f142a6457abdf295ee4d81d59b9d0, type: 3}
m_Name:
m_EditorClassIdentifier:
skinShopBuilding: {fileID: 1463485148}
skinsData: {fileID: 11400000, guid: 085f62d85d5b1b140ac6f9a15daf8767, type: 2}
popup: {fileID: 8346732420544506892}
listItemPrefab: {fileID: 7828166040598954430, guid: 0cf4a9b3fa28e873d883f846ed616805, type: 3}
@ -225151,6 +225241,18 @@ MonoBehaviour:
btn_auto: {fileID: 1514929165}
selectedServerTxts:
- {fileID: 1518449642}
--- !u!114 &981461002
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 981460996}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e910d9b1103808af1bac9e24b352024f, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &982306409 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4557739507002878, guid: e8f26c3f9e07cc64cb501ce254066e31, type: 3}
@ -243338,6 +243440,8 @@ GameObject:
- component: {fileID: 1090080045}
- component: {fileID: 1090080047}
- component: {fileID: 1090080046}
- component: {fileID: 1090080049}
- component: {fileID: 1090080048}
m_Layer: 5
m_Name: Item_Gem
m_TagString: Untagged
@ -243407,6 +243511,86 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1090080044}
m_CullTransparentMesh: 0
--- !u!114 &1090080048
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1090080044}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 36a5f511b0d8142cba0aeb92d0b264c9, type: 3}
m_Name:
m_EditorClassIdentifier:
productId: gems_40
buttonType: 0
consumePurchase: 1
onPurchaseComplete:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 981460997}
m_TargetAssemblyTypeName: GameManager, Assembly-CSharp
m_MethodName: OnBoughtIAPGems
m_Mode: 3
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 40
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
onPurchaseFailed:
m_PersistentCalls:
m_Calls: []
titleText: {fileID: 0}
descriptionText: {fileID: 0}
priceText: {fileID: 0}
--- !u!114 &1090080049
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1090080044}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1090080046}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!1001 &1090139615
PrefabInstance:
m_ObjectHideFlags: 0
@ -255258,36 +255442,64 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Mode
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 400279136}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Target
value:
objectReference: {fileID: 981461002}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: SetActive
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_MethodName
value: PlayUIPopup
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: UnityEngine.GameObject, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_TargetAssemblyTypeName
value: AudioManagerHelper, Assembly-CSharp
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_BoolArgument
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Arguments.m_BoolArgument
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463547, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 4910625423430463551, guid: 34cd695a79f27f95cbce88b05dcf4f9f, type: 3}
propertyPath: m_Name
value: Button_Rewards
@ -363942,7 +364154,6 @@ ParticleSystemRenderer:
m_RendererPriority: 0
m_Materials:
- {fileID: 10308, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -371557,6 +371768,8 @@ GameObject:
- component: {fileID: 1537685547}
- component: {fileID: 1537685549}
- component: {fileID: 1537685548}
- component: {fileID: 1537685551}
- component: {fileID: 1537685550}
m_Layer: 5
m_Name: Item_Gem
m_TagString: Untagged
@ -371626,6 +371839,86 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1537685546}
m_CullTransparentMesh: 0
--- !u!114 &1537685550
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1537685546}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 36a5f511b0d8142cba0aeb92d0b264c9, type: 3}
m_Name:
m_EditorClassIdentifier:
productId: gems_220
buttonType: 0
consumePurchase: 1
onPurchaseComplete:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 981460997}
m_TargetAssemblyTypeName: GameManager, Assembly-CSharp
m_MethodName: OnBoughtIAPGems
m_Mode: 3
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 220
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
onPurchaseFailed:
m_PersistentCalls:
m_Calls: []
titleText: {fileID: 0}
descriptionText: {fileID: 0}
priceText: {fileID: 0}
--- !u!114 &1537685551
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1537685546}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1537685548}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!1001 &1537906778
PrefabInstance:
m_ObjectHideFlags: 0
@ -372020,7 +372313,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0.4743627, y: 0.5}
m_AnchoredPosition: {x: 30.500061, y: 321.99997}
m_AnchoredPosition: {x: 30.5, y: 321.99997}
m_SizeDelta: {x: -134.45142, y: 186.56}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &1541978235
@ -414686,32 +414979,56 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 6
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Mode
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 1381291881}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Target
value:
objectReference: {fileID: 981461002}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: SetActive
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_MethodName
value: PlayUIClick
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: UnityEngine.GameObject, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_TargetAssemblyTypeName
value: AudioManagerHelper, Assembly-CSharp
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 8971760073037618422, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 8971760074084985564, guid: 4bef6041548134282abca4cb00f403d4, type: 3}
propertyPath: m_Enabled
value: 0
@ -479256,6 +479573,119 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: fb02cbf41b93227d597e97072d759f23, type: 3}
--- !u!1 &1902284698 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 866143676127507940, guid: fb02cbf41b93227d597e97072d759f23, type: 3}
m_PrefabInstance: {fileID: 1902284697}
m_PrefabAsset: {fileID: 0}
--- !u!82 &1902284699
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1902284698}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &1902284700
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1902284698}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e910d9b1103808af1bac9e24b352024f, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &1902496882 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4241811459315326, guid: b0c5c3f9b8286e14f95e62362776397f, type: 3}
@ -499763,6 +500193,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIPopup
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
--- !u!1001 &2004084166
PrefabInstance:
m_ObjectHideFlags: 0
@ -550430,6 +550872,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIClick
m_Mode: 1
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 &5295249008739945147
MonoBehaviour:
m_ObjectHideFlags: 0
@ -560588,6 +561042,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIClick
m_Mode: 1
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!224 &7863159029015087279
RectTransform:
m_ObjectHideFlags: 0
@ -567484,6 +567950,18 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIClick
m_Mode: 1
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!224 &8346732418979400483
RectTransform:
m_ObjectHideFlags: 0
@ -568923,7 +569401,19 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 8346732420754822385}
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 981461002}
m_TargetAssemblyTypeName: AudioManagerHelper, Assembly-CSharp
m_MethodName: PlayUIClick
m_Mode: 1
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!224 &8346732420754822391
RectTransform:
m_ObjectHideFlags: 0

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.3708987, g: 0.37837026, b: 0.3572256, a: 1}
m_IndirectSpecularColor: {r: 0.37311956, g: 0.3807402, b: 0.35872734, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -1823,6 +1823,154 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1111181344}
m_CullTransparentMesh: 0
--- !u!1 &1120262857
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1120262860}
- component: {fileID: 1120262859}
- component: {fileID: 1120262858}
m_Layer: 0
m_Name: AudioMgr
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1120262858
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1120262857}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8382ce8b50f25833285c48946db6ff76, type: 3}
m_Name:
m_EditorClassIdentifier:
UI_click: {fileID: 8300000, guid: 6eb61a06c187d0d39a084641039464d4, type: 3}
UI_popup: {fileID: 8300000, guid: 7f12e31c31eb1bb14983d44de30945a1, type: 3}
collectGold: {fileID: 8300000, guid: 735f302658c4a08f0980a058d5940416, type: 3}
spend: {fileID: 8300000, guid: 277a1e549f529d521be1e240555d717f, type: 3}
chestOpenRiser: {fileID: 8300000, guid: eb8d77b94d685a6b2b6bac8235764974, type: 3}
chestOpen: {fileID: 8300000, guid: 7437cc90be9e37596ad1980b6539d7cd, type: 3}
upgrade: {fileID: 8300000, guid: 5d59146b74e077cb2865de44a6a9a347, type: 3}
reward: {fileID: 8300000, guid: 27fd785457bba40fa946267bd8cb9d3a, type: 3}
--- !u!82 &1120262859
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1120262857}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!4 &1120262860
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1120262857}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 198.63264, y: 41.965626, z: 440.1118}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1144054858
GameObject:
m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1545d49a95e3d2aaa9174eb82c005065
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.44402248, g: 0.49316555, b: 0.5722324, a: 1}
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -5956,6 +5956,10 @@ MonoBehaviour:
waitingScreen: {fileID: 0}
rankedSummary: {fileID: 0}
mapRadius: 250
mapCenter: {x: 0, y: 0}
safeZone: {fileID: 0}
safeZoneCoolTime: 60
safeZoneShrinkTime: 30
maxMoons: 350
maxStars: 500
pickupItemsParent: {fileID: 41572335}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,53 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class AudioManager : MonoBehaviour
{
public static AudioManager instnace;
[SerializeField]private AudioClip UI_click;
[SerializeField]private AudioClip UI_popup;
[SerializeField]private AudioClip collectGold;
[SerializeField]private AudioClip spend;
[SerializeField]private AudioClip chestOpenRiser;
[SerializeField]private AudioClip chestOpen;
[SerializeField]private AudioClip upgrade;
[SerializeField]private AudioClip reward;
AudioSource audioSrc;
void Start()
{
audioSrc = GetComponent<AudioSource>();
instnace=this;
DontDestroyOnLoad(gameObject);
}
public void UIClick(){
audioSrc.PlayOneShot(UI_click);
}
public void UIPopup(){
audioSrc.PlayOneShot(UI_popup);
}
public void CollectGold(){
audioSrc.PlayOneShot(collectGold);
}
public void Spend(){
audioSrc.PlayOneShot(spend);
}
public void ChestOpenRiser(){
audioSrc.PlayOneShot(chestOpenRiser);
}
public void ChestOpen(){
audioSrc.PlayOneShot(chestOpen);
}
public void UpgradeBuilding(){
audioSrc.PlayOneShot(upgrade);
}
public void Reward(){
audioSrc.PlayOneShot(reward);
}
}

View File

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

View File

@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AudioManagerHelper : MonoBehaviour
{
public void PlayChestOpenRiser(){
AudioManager.instnace.ChestOpenRiser();
}
public void PlayChestOpen(){
AudioManager.instnace.ChestOpen();
}
public void PlayUIClick(){
AudioManager.instnace.UIClick();
}
public void PlayUIPopup(){
AudioManager.instnace.UIPopup();
}
}

View File

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

View File

@ -52,6 +52,7 @@ public class Building : MonoBehaviour
public void Upgrade(){
if(curLevel >= buildingData.levels.Count-1){Debug.Log("Already max");return;}
int cost = buildingData.levels[curLevel+1].price;
Debug.Log("Upgrading " + buildingData.buildingName + " for " + cost + " coins");
@ -67,6 +68,8 @@ public class Building : MonoBehaviour
DBmanager.UpgradeBuilding(buildingData.buildingName, curLevel);
DBmanager.SetXp(DBmanager.Xp + buildingData.levels[curLevel].xpGain);
AudioManager.instnace.UpgradeBuilding();
}
//
// public List<Collider> buildingsInsideMe = new List<Collider>();

View File

@ -44,6 +44,7 @@ public class CollectBtn : MonoBehaviour
case CollectablesData.ResourceType.Gold:
DBmanager.SetCoins(DBmanager.Coins + (int)collectableAmount);
AudioManager.instnace.CollectGold();
break;
// case CollectablesData.ResourceType.Oxygen:

View File

@ -545,6 +545,7 @@ public class DBmanager : MonoBehaviour
}
SetMetal(metal-data.price);
AddSkin(data);
AudioManager.instnace.Spend();
}
public static void AddSkin(SkinShopItemData data){

View File

@ -6,6 +6,7 @@ using UnityEngine.Events;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using System.Threading.Tasks;
using UnityEngine.Monetization;
public class GameManager : MonoBehaviour
{
@ -157,8 +158,16 @@ public class GameManager : MonoBehaviour
return;
}
AudioManager.instnace.Spend();
DBmanager.SetGems(DBmanager.Gems-button.Price);
DBmanager.SetCoins(DBmanager.Coins + button.Amount);
}
public void OnBoughtIAPGems(int Amount){
DBmanager.SetGems(DBmanager.Gems + Amount);
AudioManager.instnace.Spend();
}
}

View File

@ -7,6 +7,7 @@ public class GlobalLeaderboard : MonoBehaviour
public Transform leaderboardItemsParent;
public LeaderboardItem template;
public async void Show(){
AudioManager.instnace.UIPopup();
List<LeaderboardUserData> leaderboard = await DBmanager.GetLeaderboard();
template.gameObject.SetActive(true);
//Clear currentItems

View File

@ -1,3 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -5,6 +6,7 @@ using UnityEngine.SceneManagement;
public class MaintainceChecker : MonoBehaviour
{
public static int version = 1;
public static MaintainceChecker instance;
public int checkInterval = 10;
float t;
@ -21,7 +23,6 @@ public class MaintainceChecker : MonoBehaviour
t+= Time.deltaTime;
}else{
t=0;
CheckMaintainceStatus();
}
}
@ -33,12 +34,35 @@ public class MaintainceChecker : MonoBehaviour
IEnumerator checkMaintaince(){
WWW req = new WWW(DBmanager.phpRoot+"get_server_status.php");
yield return req;
Debug.Log(req.text);
if(req.text != "200"){
Debug.LogError("Servers are not ready. Gotta wait");
try{
// ServerStatus status = JsonUtility.FromJson<ServerStatus>(req.text);
String[] split = {"<td>"};
String[] data = req.text.Split(split, StringSplitOptions.RemoveEmptyEntries);
foreach(String item in data){
String[] _item = item.Split(',');
if(_item[0]=="maintaince"){
if(_item[1] == "1"){
//Maintaince mode
LoadingScreen.instance.LoadLevel("Maintaince");
}
}
if(_item[0]=="version"){
if(int.Parse(_item[1]) != version){
LoadingScreen.instance.LoadLevel("Update");
}
}
}
}catch(Exception e){
Debug.Log("Error while reading server status, Going maintaince mode");
Debug.LogError(e.Message);
LoadingScreen.instance.LoadLevel("Maintaince");
}else{
}
}
}
}

View File

@ -33,6 +33,8 @@ public class MessageDialog : MonoBehaviour
if(showing){
SetActive(false);
}
AudioManager.instnace.UIClick();
}
public void ShowMessage(string title, string message){
@ -44,31 +46,36 @@ public class MessageDialog : MonoBehaviour
okayBtn.gameObject.SetActive(true);
SetActive(true);
Refresh();
AudioManager.instnace.UIPopup();
// messageTxt.gameObject.SetActive(true);
}
UnityAction onYes = ()=>{};
UnityAction onNo = ()=>{};
public void ShowQuestion(string title, string message, UnityAction OnYes, UnityAction OnNo){
public void ShowQuestion(string title, string message, UnityAction OnYes, UnityAction OnNo, bool onlyYes = false){
titleTxt.text = title;
messageTxt.text = message;
onYes = OnYes;
onNo = OnNo;
yesBtn.gameObject.SetActive(true);
noBtn.gameObject.SetActive(true);
noBtn.gameObject.SetActive(!onlyYes);
okayBtn.gameObject.SetActive(false);
SetActive(true);
Refresh();
AudioManager.instnace.UIPopup();
}
void OnClickedYes(){
if(onYes!=null){onYes();}
OnOkay();
AudioManager.instnace.UIClick();
}
void OnClickedNo(){
if(onNo!=null){onNo();}
OnOkay();
AudioManager.instnace.UIClick();
}
public void SetActive(bool value){
GetComponent<CanvasGroup>().blocksRaycasts= value;

View File

@ -3,14 +3,20 @@ using System.Collections.Generic;
using UnityEngine;
using Mirror;
using LightReflectiveMirror;
using UnityEngine.SceneManagement;
public class AutoConnect : MonoBehaviour
{
public static AutoConnect instance;
public bool isClient;
public static int serverPort;
public bool isRanked;
public kcp2k.KcpTransport transport;
void Start()
{
instance = this;
if(isClient && !DBmanager.LoggedIn){
SceneManager.LoadScene(0);
}
if (isRanked)
{

View File

@ -10,6 +10,7 @@ public class MinigameManager : NetworkBehaviour
{
public static MinigameManager instance;
public bool isRanked;
[SyncVar]
public bool RankedGameStarted=false;
[SyncVar(hook =nameof(OnWinnerChanged))]
public int winnerId=-1;
@ -17,7 +18,15 @@ public class MinigameManager : NetworkBehaviour
public double startedTime = 0;
public GameObject waitingScreen;
public RankedGameSummary rankedSummary;
[SyncVar(hook= nameof(OnMapRadisuChanged))]
public float mapRadius;
[SyncVar(hook=nameof(OnMapCenterChanged))]
public Vector2 mapCenter = Vector2.zero;
public Transform safeZone;
public float safeZoneCoolTime = 60;
public float safeZoneShrinkTime = 30;
float safeZoneShrinkSpeed;
public int maxMoons, maxStars = 100;
public Transform pickupItemsParent;
private List<PickupItem> ActiveMoons = new List<PickupItem>();
@ -36,22 +45,13 @@ public class MinigameManager : NetworkBehaviour
DBmanager.OnStateChanged.AddListener(UpdateMaterialValues);
UpdateMaterialValues();
safeZoneShrinkSpeed = mapRadius / safeZoneShrinkTime;
}
void Update()
{
// if(!DBmanager.LoggedIn){SceneManager.LoadScene(0);} //Signed out, no game for u
if(isRanked){
// RankedGameStarted= (FindObjectsOfType<SpaceshipController>().Length >=2);
if(!RankedGameStarted && !isServer){
SpaceshipController[] players = FindObjectsOfType<SpaceshipController>();
if(players.Length >= 2){
RankedGameStarted=true;
}
}
waitingScreen.SetActive(!RankedGameStarted);
}
if (!isServer) { return; }
@ -59,16 +59,46 @@ public class MinigameManager : NetworkBehaviour
KillOutOfBoundsPlayers();
if(isRanked){RankedMechanics();}
}
public float timeElapsed => (float)(NetworkTime.time - startedTime);
bool shrinkStarted =false;
uint[] PlayersIds;
Vector2 newMapCenter = Vector2.zero;
public void StartRanked(){
startedTime=NetworkTime.time;
RankedGameStarted=true;
void RankedMechanics(){
SpaceshipController[] players = FindObjectsOfType<SpaceshipController>();
if(players.Length < 2){
//Not enough players
}else{
if(!RankedGameStarted){
startedTime=NetworkTime.time;
PlayersIds = new uint[players.Length];
for(int i=0; i < players.Length; i++){
PlayersIds[i] = players[i].netId;
}
}
void RankedMechanics(){
mapCenter += ((newMapCenter - mapCenter) / safeZoneShrinkTime) * Time.deltaTime;
SpaceshipController[] players = FindObjectsOfType<SpaceshipController>();
if(players.Length >= 2 && !RankedGameStarted){
if(players[0].ready && players[1].ready){
//Both are ready
StartRanked();
}
RankedGameStarted=true;
}
if(RankedGameStarted){
if(timeElapsed > safeZoneCoolTime){
if(!shrinkStarted){
shrinkStarted=true;
newMapCenter = getRandomPointInCirlce(mapCenter, mapRadius /2f);
KillfeedMgr.instance.AddNewEntry("Safe zone is shrinking!");
RpcKillfeed("Safe-zone is Shrinking!");
}
if(mapRadius > 3){
mapRadius -= Time.deltaTime * safeZoneShrinkSpeed;
safeZone.localScale = new Vector3(mapRadius, mapRadius,mapRadius);
}
}
if(players[0].moonsCollected >= 30){
//player 1 has won
winnerId = (int)players[0].netId;
@ -90,8 +120,26 @@ public class MinigameManager : NetworkBehaviour
}
}
public void OnMapRadisuChanged(float oldVal, float newVal){
if(isRanked){
safeZone.localScale = new Vector3(mapRadius, mapRadius,mapRadius);
}
}
public void OnMapCenterChanged(Vector2 oldPos, Vector2 newPos){
if(isRanked){
safeZone.position = newPos;
}
}
void RpcKillfeed(string message){
KillfeedMgr.instance.AddNewEntry(message);
}
void OnWinnerChanged(int oldVal, int newVal){
if(newVal<= 0){return;}
// if(!isLocalPlayer){return;}
Debug.Log($"{newVal} id won!");
SpaceshipController localPlayer = SceneData.localPlayer.GetComponent<SpaceshipController>();
if(newVal == localPlayer.netId){
@ -109,16 +157,31 @@ public class MinigameManager : NetworkBehaviour
SpaceshipController[] players = FindObjectsOfType<SpaceshipController>();
foreach (SpaceshipController player in players)
{
if (Vector3.Distance(player.transform.position, Vector3.zero) > mapRadius)
if (Vector3.Distance(player.transform.position, mapCenter) > mapRadius)
{
//Out of bounds. Kill him
player.Die("Playzone");
if(isRanked){
player.DecreaseTrail(Time.deltaTime * 4);
if(player.trailTime < 1){
winnerId = (int)(PlayersIds[0] == player.netId ? PlayersIds[1] : PlayersIds[0]);
player.Die("Playzone");
}
}else{
player.Die("Playzone");
}
}
}
}
void HandlePickupSpawn()
{
foreach(PickupItem moon in ActiveMoons){
if(Vector2.Distance(Vector2.zero, moon.transform.position) > mapRadius){
moon.Deactivate();
}
}
int moonsNeed = maxMoons - ActiveMoons.Count;
int starsNeed = maxStars - ActiveStars.Count;

View File

@ -0,0 +1,52 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class RankedSplash : MonoBehaviour
{
public int playerCountRequired;
public TMP_Text statusTxt;
void Start()
{
statusTxt.text = "Waiting for confirmation";
}
bool allConnected= false;
string rules = @"1.Last one standing or the first to \ncollect 30 moons wins!
2.Stay in safe zone to survive
3.Safe-Zone gets shrinked in 5 mins
4.Have fun!";
void Update()
{
// if(AutoConnect.instance.isClient){return;}
if(MinigameManager.instance ==null){return;}
SpaceshipController[] players = FindObjectsOfType<SpaceshipController>();
if(players.Length >= playerCountRequired && players[0].ready && players[1].ready){
//Start the match!
gameObject.SetActive(false);
}
if(!MinigameManager.instance.RankedGameStarted){
if(!allConnected && players.Length < playerCountRequired){
statusTxt.text = "Waiting for opponents to connect";
}else{
if(!allConnected){
allConnected = true;
MessageDialog.instance.ShowQuestion("Confirm", $"Click yes to confirm you understand the rules below.\n{rules}", OnAgree, ()=>{}, onlyYes:true);
}
if(players[0].ready && players[1].ready){
//Start the match!
gameObject.SetActive(false);
}else{
statusTxt.text = "Waiting for players to get ready";
}
}
}
}
void OnAgree(){
SceneData.localPlayer.GetComponent<SpaceshipController>().SetReady(true);
}
}

View File

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

View File

@ -29,7 +29,7 @@ public class SceneDataHolder : MonoBehaviour
}
public void ShowDeadscreen(int xpEarned, int metalEarned, double survivalTime){
AdsManager.instance.ShowInterestitial();
if(AdsManager.instance!=null){AdsManager.instance.ShowInterestitial();}
deadScreen.SetActive(true);
xpEarnings.SetActive(xpEarned > 0); metalEarnings.SetActive(metalEarned > 0);
xpEarnings.GetComponentInChildren<TMP_Text>().text = xpEarned.ToString();

View File

@ -8,6 +8,7 @@ using UnityEngine.UI;
public class SkinShopManager : MonoBehaviour
{
public static SkinShopManager instance;
public Building skinShopBuilding;
public SkinsData skinsData;
public GameObject popup;
@ -53,6 +54,13 @@ public class SkinShopManager : MonoBehaviour
}
skinShopItems = new List<SkinShopItem>();
for(int i=0; i<skinsData.skins.Length;i++){
int rarity = 0;
if(skinsData.skins[i].skinType == SkinType.Rare){rarity=1;}
if(skinsData.skins[i].skinType == SkinType.Legendary){rarity=2;}
if(skinShopBuilding.curLevel < rarity){
continue;
}
SkinShopItem newItem = Instantiate(listItemPrefab, listItemsParent).GetComponent<SkinShopItem>();
newItem.Set(skinsData.skins[i]);
skinShopItems.Add(newItem);

View File

@ -7,6 +7,8 @@ using System.Collections;
public class SpaceshipController : NetworkBehaviour
{
[SyncVar]
public bool ready;
public SpriteRenderer playerImg;
public SkinsData skins;
[SyncVar(hook = nameof(OnSkinChanged))]
@ -26,8 +28,7 @@ public class SpaceshipController : NetworkBehaviour
public bool dead;
[SyncVar]
public float speed;
[SyncVar(hook = nameof(OnScaleChanged))]
public float scaleMultiplier = 1;
public float _scaleMultiplier = 1;
public Text pnameTxt;
public Transform body;
public TrailMgr trailMgr;
@ -49,6 +50,19 @@ public class SpaceshipController : NetworkBehaviour
public float distanceFromCenter = 0;
public void SetReady(bool value){
if(isServer){
ready =value;
}else{
CmdSetReady(value);
}
}
[Command]
void CmdSetReady(bool value){
ready= value;
}
[Command]
void CmdSetPname(string value)
{
@ -57,6 +71,7 @@ public class SpaceshipController : NetworkBehaviour
void OnPnameChanged(string oldName, string newName)
{
pnameTxt.text = newName;
Debug.Log(pname + " Joined the game");
}
[Command]
@ -85,6 +100,13 @@ public class SpaceshipController : NetworkBehaviour
void OnTrailTimeChanged(float oldValue, float newValue)
{
trailMgr.trail.time = newValue;
if (isLocalPlayer)
{
SceneData.holder.boostBtn.gameObject.SetActive(scale > 1);
if(scale <=1 && boosting){
CmdSetBoosting(false);
}
}
}
void OnBoostDown()
@ -117,17 +139,6 @@ public class SpaceshipController : NetworkBehaviour
}
}
void OnScaleChanged(float oldScale, float newScale)
{
if (isLocalPlayer)
{
SceneData.holder.boostBtn.gameObject.SetActive(newScale > 1);
if(newScale <=1 && boosting){
CmdSetBoosting(false);
}
}
}
[Command]
void CmdSetBoosting(bool value)
{
@ -144,7 +155,6 @@ public class SpaceshipController : NetworkBehaviour
void Start()
{
scaleMultiplier = 1;
if (isLocalPlayer)
{
ResetStats();
@ -193,6 +203,7 @@ public class SpaceshipController : NetworkBehaviour
int roundedTime => Mathf.FloorToInt((float)timeInMillis / 100f) * 100;
int lastClientUpdateTime = 0;
float scale => Mathf.Clamp(1+(trailTime * _scaleMultiplier),1,10);
void FixedUpdate()
{
if (MinigameManager.instance.isRanked && !MinigameManager.instance.RankedGameStarted) { return; }
@ -200,8 +211,8 @@ public class SpaceshipController : NetworkBehaviour
pnameTxt.rectTransform.rotation = Quaternion.Euler(Vector3.zero);
//Update size of trail and spaceship
transform.localScale = Vector3.Lerp(transform.localScale, new Vector3(scaleMultiplier, scaleMultiplier, scaleMultiplier), 0.1f);
trailMgr.trail.startWidth = Mathf.Lerp(trailMgr.trail.startWidth, scaleMultiplier, 0.1f);
transform.localScale = Vector3.Lerp(transform.localScale, new Vector3(scale, scale, scale), 0.1f);
trailMgr.trail.startWidth = Mathf.Lerp(trailMgr.trail.startWidth, scale, 0.1f);
if (dead) { return; }
@ -235,12 +246,12 @@ public class SpaceshipController : NetworkBehaviour
if (isServer)
{
//boost check
if (boosting && scaleMultiplier > 1)
if (boosting && scale > 1)
{
speed = movingSpeed * 2;
scaleMultiplier -= Time.deltaTime;
if (scaleMultiplier < 1) { scaleMultiplier = 1; } //Clamp in case gets lower
DecreaseTrail(Time.deltaTime * 3);
// scaleMultiplier -= Time.deltaTime;
// if (scaleMultiplier < 1) { scaleMultiplier = 1; } //Clamp in case gets lower
}
else
{
@ -512,8 +523,8 @@ public class SpaceshipController : NetworkBehaviour
{
Kills++;
Scores += 10; //TODO: Need to change Scores on kills?
scaleMultiplier += 0.05f;
OnScaleChanged(scaleMultiplier, scaleMultiplier);
// scaleMultiplier += 0.05f;
// OnScaleChanged(scaleMultiplier, scaleMultiplier);
IncreaseTrail(trailIncrementRate);
RpcOnKill();
}
@ -537,7 +548,14 @@ public class SpaceshipController : NetworkBehaviour
{
trailTime = trailMgr.trail.time + rate;
trailMgr.trail.time = trailTime;
Debug.Log("Increasing trail of" + pname);
// Debug.Log("Increasing trail of" + pname);
}
public void DecreaseTrail(float rate)
{
trailTime = Mathf.Clamp(trailMgr.trail.time - rate,0,float.MaxValue);
trailMgr.trail.time = trailTime;
// Debug.Log("Decreasing trail of" + pname);
}
[Command]
@ -553,13 +571,13 @@ public class SpaceshipController : NetworkBehaviour
{
case PickupItem.PickupType.Moon:
IncreaseTrail(trailIncrementRate);
scaleMultiplier += 0.05f;
// scaleMultiplier += 0.05f;
moonsCollected++;
break;
case PickupItem.PickupType.Star:
IncreaseTrail(trailIncrementRate / 2f);
scaleMultiplier += 0.025f;
// scaleMultiplier += 0.025f;
break;
}
@ -583,8 +601,8 @@ public class SpaceshipController : NetworkBehaviour
Debug.Log($"Sending death signal to {pname} by {killer}");
//Handle Respawning
OnScaleChanged(scaleMultiplier, 1);
scaleMultiplier = 1;
// OnScaleChanged(scaleMultiplier, 1);
// scaleMultiplier = 1;
dead = true;
Scores = 0;
Kills = 0;

View File

@ -11,4 +11,8 @@ public class SceneManagerHelper : MonoBehaviour
public void LoadLevel(string sceneName){
LoadingScreen.instance.LoadLevel(sceneName);
}
public void OpenLink(string url){
Application.OpenURL(url);
}
}

View File

@ -81,6 +81,7 @@ public class SelectedItemMenu : MonoBehaviour
void OnUpgradeMenuClicked()
{
// Debug.Log("Opening Upgrade Menu for : " + Selector.selectedBuilding.buildingData.name);
AudioManager.instnace.UIPopup();
upgradeMenu.SetActive(true);
upgrade_buildingName.text = Selector.selectedBuilding.buildingData.buildingName;
@ -137,10 +138,14 @@ public class SelectedItemMenu : MonoBehaviour
tierIndicators[i].SetActive( Selector.selectedBuilding.curLevel == i);
}
descriptionTxt.text = Selector.selectedBuilding.buildingData.description;
AudioManager.instnace.UIPopup();
}
void OpenSkinMenu(){
SkinShopManager.instance.Show();
AudioManager.instnace.UIPopup();
}
void OnCollect(){

View File

@ -16,12 +16,6 @@ public class GoldPackButton : MonoBehaviour
GetComponent<Button>().onClick.AddListener(OnClicked);
}
// Update is called once per frame
void Update()
{
}
void OnClicked(){
MessageDialog.instance.ShowQuestion("Are you sure?", $"Are you sure to purchase {Amount} Gold for {Price} Gems?", Buy,null);
}

View File

@ -97,7 +97,7 @@ public class XpPass : MonoBehaviour
public void OnRewardCollect(int level){
if(DBmanager.ExpPassCollected.Contains(level)){return;} //False call
AudioManager.instnace.Reward();
foreach(XpPassReward reward in rewards){
if(reward.level == level){
DBmanager.AddCollectedExpPass(level);

View File

@ -3387,4 +3387,18 @@ AnimationClip:
script: {fileID: 0}
m_HasGenericRootTransform: 1
m_HasMotionFloatCurves: 0
m_Events: []
m_Events:
- time: 0
functionName: PlayChestOpenRiser
data:
objectReferenceParameter: {fileID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 1.3166667
functionName: PlayChestOpen
data:
objectReferenceParameter: {fileID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0

View File

@ -0,0 +1 @@
{"appleSKU":"","appleTeamID":"","enableCodelessAutoInitialization":true,"enableUnityGamingServicesAutoInitialization":true,"products":[{"id":"gems_40","type":0,"storeIDs":[],"defaultDescription":{"googleLocale":4,"title":"40 Gems Pack","description":"Receive 40 Gems"},"screenshotPath":"","applePriceTier":2,"googlePrice":{"data":[199,0,0,131072],"num":1.99},"pricingTemplateID":"1.99","descriptions":[],"udpPrice":{"data":[0,0,0,0],"num":0.0},"payouts":[{"t":"Currency","st":"Gems","q":40.0,"d":""}]},{"id":"gems_220","type":0,"storeIDs":[],"defaultDescription":{"googleLocale":4,"title":"220 Gems Pack","description":""},"screenshotPath":"","applePriceTier":0,"googlePrice":{"data":[0,0,0,0],"num":0.0},"pricingTemplateID":"","descriptions":[],"udpPrice":{"data":[0,0,0,0],"num":0.0},"payouts":[{"t":"Currency","st":"Gems","q":220.0,"d":""}]},{"id":"gems_480","type":0,"storeIDs":[],"defaultDescription":{"googleLocale":4,"title":"480 Gems Pack","description":""},"screenshotPath":"","applePriceTier":0,"googlePrice":{"data":[0,0,0,0],"num":0.0},"pricingTemplateID":"","descriptions":[],"udpPrice":{"data":[0,0,0,0],"num":0.0},"payouts":[{"t":"Currency","st":"Gems","q":480.0,"d":""}]}]}

View File

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

View File

@ -17,27 +17,63 @@ MonoBehaviour:
image: {fileID: 4684224760558976125, guid: 4de40472c684c464db6425c3f8b4cb86, type: 3}
price: 0
skinType: 0
- name: Avg space enjoyer
image: {fileID: 5693378827328238, guid: 4de40472c684c464db6425c3f8b4cb86, type: 3}
- name: base_yellow
image: {fileID: -891101006492794385, guid: 4de40472c684c464db6425c3f8b4cb86, type: 3}
price: 5000
skinType: 0
- name: Rare Prince
image: {fileID: 638681777288463559, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 20000
skinType: 1
- name: Rare Viper
image: {fileID: -5759662267452513102, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 20000
skinType: 1
- name: Rare Gold
- name: base green
image: {fileID: -3653331988967430578, guid: 4de40472c684c464db6425c3f8b4cb86, type: 3}
price: 5000
skinType: 0
- name: base_red
image: {fileID: 638681777288463559, guid: 4de40472c684c464db6425c3f8b4cb86, type: 3}
price: 10000
skinType: 0
- name: base2_green
image: {fileID: 5693378827328238, guid: 4de40472c684c464db6425c3f8b4cb86, type: 3}
price: 10000
skinType: 0
- name: base2_silver
image: {fileID: 4857983967714589581, guid: 4de40472c684c464db6425c3f8b4cb86, type: 3}
price: 10000
skinType: 0
- name: rare_black_gold
image: {fileID: 4684224760558976125, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 20000
skinType: 1
- name: Legendary Fish
- name: rare_pink
image: {fileID: -891101006492794385, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 20000
skinType: 1
- name: rare_pink_2
image: {fileID: -3653331988967430578, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 25000
skinType: 1
- name: rare_blue_2
image: {fileID: 638681777288463559, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 25000
skinType: 1
- name: rare_blue_3
image: {fileID: 5693378827328238, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 30000
skinType: 1
- name: rare_purple_3
image: {fileID: -5759662267452513102, guid: d274292b8f4ba6c49a18bae11a1b9893, type: 3}
price: 30000
skinType: 1
- name: legendary_fish_red
image: {fileID: 4684224760558976125, guid: 2c885f2a72d92dd4e96779a685c53911, type: 3}
price: 50000
price: 40000
skinType: 2
- name: Legendary Fish Toxic
- name: legendary_fish_green
image: {fileID: -891101006492794385, guid: 2c885f2a72d92dd4e96779a685c53911, type: 3}
price: 40000
skinType: 2
- name: legendary_pig_green
image: {fileID: -3653331988967430578, guid: 2c885f2a72d92dd4e96779a685c53911, type: 3}
price: 50000
skinType: 2
- name: legendary_pig_pink
image: {fileID: 638681777288463559, guid: 2c885f2a72d92dd4e96779a685c53911, type: 3}
price: 50000
skinType: 2

View File

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

View File

@ -28,7 +28,7 @@
"com.unity.ide.visualstudio": "2.0.14",
"com.unity.ide.vscode": "1.2.5",
"com.unity.performance.profile-analyzer": "1.1.1",
"com.unity.purchasing": "4.1.3",
"com.unity.purchasing": "4.4.1",
"com.unity.render-pipelines.universal": "10.9.0",
"com.unity.test-framework": "1.1.31",
"com.unity.textmeshpro": "3.0.6",

View File

@ -92,6 +92,13 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.nuget.newtonsoft-json": {
"version": "3.0.2",
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.performance.profile-analyzer": {
"version": "1.1.1",
"depth": 0,
@ -100,7 +107,7 @@
"url": "https://packages.unity.com"
},
"com.unity.purchasing": {
"version": "4.1.3",
"version": "4.4.1",
"depth": 0,
"source": "registry",
"dependencies": {
@ -109,7 +116,8 @@
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.services.core": "1.0.1"
"com.unity.services.core": "1.3.1",
"com.unity.services.analytics": "4.0.1"
},
"url": "https://packages.unity.com"
},
@ -142,12 +150,24 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.services.core": {
"version": "1.0.1",
"com.unity.services.analytics": {
"version": "4.0.1",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0"
"com.unity.ugui": "1.0.0",
"com.unity.services.core": "1.4.0"
},
"url": "https://packages.unity.com"
},
"com.unity.services.core": {
"version": "1.4.0",
"depth": 2,
"source": "registry",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.0.2",
"com.unity.modules.androidjni": "1.0.0"
},
"url": "https://packages.unity.com"
},

View File

@ -29,6 +29,9 @@ EditorBuildSettings:
- enabled: 1
path: Assets/Game/Scenes/GameScene/Maintaince.unity
guid: 0d77b4960213a84b1877a979d4f5e03a
- enabled: 1
path: Assets/Game/Scenes/GameScene/Update.unity
guid: 1545d49a95e3d2aaa9174eb82c005065
- enabled: 1
path: Assets/Game/Scenes/Minigame/MinigameRanked.unity
guid: a9d3dbf520f6a482b8a715db7a293e58

View File

@ -134,7 +134,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 1
bundleVersion: 0.3
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
@ -154,15 +154,15 @@ PlayerSettings:
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: com.TWEP.UPF
Standalone: com.DefaultCompany.UPF
Standalone: com.TWEP.UPF
buildNumber:
Standalone: 0
iPhone: 0
tvOS: 0
overrideDefaultApplicationIdentifier: 0
AndroidBundleVersionCode: 1
AndroidBundleVersionCode: 3
AndroidMinSdkVersion: 22
AndroidTargetSdkVersion: 29
AndroidTargetSdkVersion: 33
AndroidPreferredInstallLocation: 1
aotOptions:
stripEngineCode: 1
@ -255,7 +255,7 @@ PlayerSettings:
AndroidEnableTango: 0
androidEnableBanner: 1
androidUseLowAccuracyLocation: 0
androidUseCustomKeystore: 0
androidUseCustomKeystore: 1
m_AndroidBanners:
- width: 320
height: 180
@ -694,7 +694,7 @@ PlayerSettings:
additionalCompilerArguments: {}
platformArchitecture: {}
scriptingBackend:
Android: 0
Android: 1
il2cppCompilerConfiguration: {}
managedStrippingLevel: {}
incrementalIl2cppBuild: {}
@ -768,7 +768,14 @@ PlayerSettings:
XboxOneOverrideIdentityPublisher:
vrEditorSettings: {}
cloudServicesEnabled:
Build: 0
Collab: 0
Game Performance: 0
Legacy Analytics: 1
Purchasing: 1
UDP: 0
UNet: 1
Unity Ads: 0
luminIcon:
m_Name:
m_ModelFolderPath:
@ -782,11 +789,11 @@ PlayerSettings:
m_VersionName:
apiCompatibilityLevel: 6
activeInputHandler: 0
cloudProjectId:
cloudProjectId: b22c1a69-59e0-4958-bbcf-4855c7a475a5
framebufferDepthMemorylessMode: 0
qualitySettingsNames: []
projectName:
organizationId:
projectName: UPF
organizationId: tw3pdev
cloudEnabled: 0
legacyClampBlendShapeWeights: 0
virtualTexturingSupportEnabled: 0

View File

@ -1,35 +1,35 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!310 &1
UnityConnectSettings:
m_ObjectHideFlags: 0
serializedVersion: 1
m_Enabled: 0
m_TestMode: 0
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
m_ConfigUrl: https://config.uca.cloud.unity3d.com
m_DashboardUrl: https://dashboard.unity3d.com
m_TestInitMode: 0
CrashReportingSettings:
m_EventUrl: https://perf-events.cloud.unity3d.com
m_Enabled: 0
m_LogBufferSize: 10
m_CaptureEditorExceptions: 1
UnityPurchasingSettings:
m_Enabled: 0
m_TestMode: 0
UnityAnalyticsSettings:
m_Enabled: 0
m_TestMode: 0
m_InitializeOnStartup: 1
UnityAdsSettings:
m_Enabled: 0
m_InitializeOnStartup: 1
m_TestMode: 0
m_IosGameId:
m_AndroidGameId:
m_GameIds: {}
m_GameId:
PerformanceReportingSettings:
m_Enabled: 0
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!310 &1
UnityConnectSettings:
m_ObjectHideFlags: 0
serializedVersion: 1
m_Enabled: 1
m_TestMode: 0
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
m_ConfigUrl: https://config.uca.cloud.unity3d.com
m_DashboardUrl: https://dashboard.unity3d.com
m_TestInitMode: 0
CrashReportingSettings:
m_EventUrl: https://perf-events.cloud.unity3d.com
m_Enabled: 0
m_LogBufferSize: 10
m_CaptureEditorExceptions: 1
UnityPurchasingSettings:
m_Enabled: 1
m_TestMode: 0
UnityAnalyticsSettings:
m_Enabled: 1
m_TestMode: 0
m_InitializeOnStartup: 1
UnityAdsSettings:
m_Enabled: 0
m_InitializeOnStartup: 1
m_TestMode: 0
m_IosGameId:
m_AndroidGameId:
m_GameIds: {}
m_GameId:
PerformanceReportingSettings:
m_Enabled: 0

11793
mono_crash.1896d82a8a.1.json Normal file

File diff suppressed because it is too large Load Diff

12740
mono_crash.1896d82a8a.2.json Normal file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More