Commit 393db714 authored by Yousef Sameh's avatar Yousef Sameh

Restart Button Fix

parent e211b8b7
...@@ -134,7 +134,7 @@ MonoBehaviour: ...@@ -134,7 +134,7 @@ MonoBehaviour:
m_EditorClassIdentifier: LightSide.UniText::LightSide.UniText m_EditorClassIdentifier: LightSide.UniText::LightSide.UniText
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_Color: {r: 0.1882353, g: 0.1882353, b: 0.8156863, a: 1} m_Color: {r: 0.1882353, g: 0.1882353, b: 0.8156863, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 1
m_OnCullStateChanged: m_OnCullStateChanged:
...@@ -2128,7 +2128,7 @@ GameObject: ...@@ -2128,7 +2128,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &7945613461064983669 --- !u!224 &7945613461064983669
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
......
...@@ -69,7 +69,7 @@ AnimatorState: ...@@ -69,7 +69,7 @@ AnimatorState:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: opening m_Name: opening
m_Speed: 1 m_Speed: 1.5
m_CycleOffset: 0 m_CycleOffset: 0
m_Transitions: m_Transitions:
- {fileID: -7232096781882953214} - {fileID: -7232096781882953214}
......
...@@ -124,7 +124,7 @@ namespace com.al_arcade.mcq ...@@ -124,7 +124,7 @@ namespace com.al_arcade.mcq
if (uiManager != null) uiManager.HideLoading(); if (uiManager != null) uiManager.HideLoading();
// Robot getting up animation // Robot getting up animation
yield return new WaitForSeconds(3.5f); yield return new WaitForSeconds(2.5f);
BeginGameplay(); BeginGameplay();
...@@ -144,6 +144,8 @@ namespace com.al_arcade.mcq ...@@ -144,6 +144,8 @@ namespace com.al_arcade.mcq
uiManager.ShowGameUI(); uiManager.ShowGameUI();
} }
questionDisplay.transform.DOScale(Vector3.one, 0.5f).From(Vector3.zero).SetEase(Ease.OutBack);
onGameStart?.Invoke(); onGameStart?.Invoke();
StartCoroutine(GameLoop()); StartCoroutine(GameLoop());
} }
......
...@@ -432,6 +432,8 @@ namespace com.al_arcade.mcq ...@@ -432,6 +432,8 @@ namespace com.al_arcade.mcq
{ {
HideResults(); HideResults();
onRestartClicked?.Invoke(); onRestartClicked?.Invoke();
McqGameManager.Instance.ResetGame();
McqGameManager.Instance.StartGame();
} }
public void ResetUI() public void ResetUI()
......
...@@ -6,8 +6,8 @@ EditorBuildSettings: ...@@ -6,8 +6,8 @@ EditorBuildSettings:
serializedVersion: 2 serializedVersion: 2
m_Scenes: m_Scenes:
- enabled: 1 - enabled: 1
path: Assets/Scenes/MCQ/MSQ.unity path: Assets/Scenes/CS/CS.unity
guid: 05c999880425b2f4ab66a364621f9a05 guid: 4013c5c8b28e4e746859513f1ec95b1e
m_configObjects: m_configObjects:
com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3} com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3}
m_UseUCBPForAssetBundles: 0 m_UseUCBPForAssetBundles: 0
...@@ -811,7 +811,7 @@ PlayerSettings: ...@@ -811,7 +811,7 @@ PlayerSettings:
webGLExceptionSupport: 1 webGLExceptionSupport: 1
webGLNameFilesAsHashes: 0 webGLNameFilesAsHashes: 0
webGLShowDiagnostics: 0 webGLShowDiagnostics: 0
webGLDataCaching: 1 webGLDataCaching: 0
webGLDebugSymbols: 0 webGLDebugSymbols: 0
webGLEmscriptenArgs: webGLEmscriptenArgs:
webGLModulesDirectory: webGLModulesDirectory:
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
QualitySettings: QualitySettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 5 serializedVersion: 5
m_CurrentQuality: 1 m_CurrentQuality: 0
m_QualitySettings: m_QualitySettings:
- serializedVersion: 5 - serializedVersion: 5
name: Mobile name: Web
pixelLightCount: 2 pixelLightCount: 2
shadows: 2 shadows: 2
shadowResolution: 1 shadowResolution: 1
...@@ -48,60 +48,6 @@ QualitySettings: ...@@ -48,60 +48,6 @@ QualitySettings:
asyncUploadBufferSize: 16 asyncUploadBufferSize: 16
asyncUploadPersistentBuffer: 1 asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1 resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 11400000, guid: 5e6cbd92db86f4b18aec3ed561671858, type: 2}
terrainQualityOverrides: 0
terrainPixelError: 1
terrainDetailDensityScale: 1
terrainBasemapDistance: 1000
terrainDetailDistance: 80
terrainTreeDistance: 5000
terrainBillboardStart: 50
terrainFadeLength: 5
terrainMaxTrees: 50
excludedTargetPlatforms:
- Standalone
- serializedVersion: 5
name: PC
pixelLightCount: 2
shadows: 2
shadowResolution: 1
shadowProjection: 1
shadowCascades: 2
shadowDistance: 40
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
skinWeights: 4
globalTextureMipmapLimit: 0
textureMipmapLimitSettings: []
anisotropicTextures: 2
antiAliasing: 0
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 1
useLegacyDetailDistribution: 1
adaptiveVsync: 0
vSyncCount: 0
realtimeGICPUUsage: 100
adaptiveVsyncExtraA: 0
adaptiveVsyncExtraB: 0
lodBias: 2
meshLodThreshold: 1
maximumLODLevel: 0
enableLODCrossFade: 1
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
streamingMipmapsRenderersPerFrame: 512
streamingMipmapsMaxLevelReduction: 2
streamingMipmapsMaxFileIORequests: 1024
particleRaycastBudget: 256
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 11400000, guid: 4b83569d67af61e458304325a23e5dfd, type: 2} customRenderPipeline: {fileID: 11400000, guid: 4b83569d67af61e458304325a23e5dfd, type: 2}
terrainQualityOverrides: 0 terrainQualityOverrides: 0
terrainPixelError: 1 terrainPixelError: 1
...@@ -112,22 +58,20 @@ QualitySettings: ...@@ -112,22 +58,20 @@ QualitySettings:
terrainBillboardStart: 50 terrainBillboardStart: 50
terrainFadeLength: 5 terrainFadeLength: 5
terrainMaxTrees: 50 terrainMaxTrees: 50
excludedTargetPlatforms: excludedTargetPlatforms: []
- Android
- iPhone
m_TextureMipmapLimitGroupNames: [] m_TextureMipmapLimitGroupNames: []
m_PerPlatformDefaultQuality: m_PerPlatformDefaultQuality:
Android: 0 Android: 0
GameCoreScarlett: 1 GameCoreScarlett: 0
GameCoreXboxOne: 1 GameCoreXboxOne: 0
Lumin: 0 Lumin: 0
Nintendo Switch: 1 Nintendo Switch: 0
Nintendo Switch 2: 1 Nintendo Switch 2: 0
PS4: 1 PS4: 0
PS5: 1 PS5: 0
Server: 0 Server: 0
Stadia: 0 Stadia: 0
Standalone: 1 Standalone: 0
WebGL: 0 WebGL: 0
Windows Store Apps: 0 Windows Store Apps: 0
XboxOne: 0 XboxOne: 0
......
...@@ -27,13 +27,13 @@ EditorUserSettings: ...@@ -27,13 +27,13 @@ EditorUserSettings:
value: 0003525055055d020e0b0a7216755d444215417e787d27362e2f4866b2e1323e value: 0003525055055d020e0b0a7216755d444215417e787d27362e2f4866b2e1323e
flags: 0 flags: 0
RecentlyUsedSceneGuid-6: RecentlyUsedSceneGuid-6:
value: 5304575f5c0c51035d5a5e771271594417154e7c2d7b70647b7b4c35bbe1646d value: 000305555d01595a5c5d082143700911134e1c737b2b7763782c1962b5b3666d
flags: 0 flags: 0
RecentlyUsedSceneGuid-7: RecentlyUsedSceneGuid-7:
value: 000305555d01595a5c5d082143700911134e1c737b2b7763782c1962b5b3666d value: 5701055506000a030f5c542744260844404f4d73797975367c2c1e6ab7e2653d
flags: 0 flags: 0
RecentlyUsedSceneGuid-8: RecentlyUsedSceneGuid-8:
value: 5701055506000a030f5c542744260844404f4d73797975367c2c1e6ab7e2653d value: 5304575f5c0c51035d5a5e771271594417154e7c2d7b70647b7b4c35bbe1646d
flags: 0 flags: 0
UnityEditor.ShaderGraph.Blackboard: UnityEditor.ShaderGraph.Blackboard:
value: 18135939215a0a5004000b0e15254b524c030a3f2964643d120d1230e9e93a3fd6e826abbd2e2d293c4ead313b08042de6030a0afa240c0d020be94c4ba75e435d8715fa32c70d15d11612dacc11fee5d3c5d1fe9ab1bf968e93e2ffcbc3e7e2f0b3ffe0e8b0be9af8ffaeffff8e85dd8390e3949c8899daa7 value: 18135939215a0a5004000b0e15254b524c030a3f2964643d120d1230e9e93a3fd6e826abbd2e2d293c4ead313b08042de6030a0afa240c0d020be94c4ba75e435d8715fa32c70d15d11612dacc11fee5d3c5d1fe9ab1bf968e93e2ffcbc3e7e2f0b3ffe0e8b0be9af8ffaeffff8e85dd8390e3949c8899daa7
......
...@@ -16,7 +16,7 @@ MonoBehaviour: ...@@ -16,7 +16,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 10 x: 10
y: 10 y: 10
width: 945 width: 1900
height: 1035 height: 1035
m_ShowMode: 4 m_ShowMode: 4
m_Title: Console m_Title: Console
...@@ -44,7 +44,7 @@ MonoBehaviour: ...@@ -44,7 +44,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 945 width: 1900
height: 1035 height: 1035
m_MinSize: {x: 875, y: 300} m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000} m_MaxSize: {x: 10000, y: 10000}
...@@ -69,7 +69,7 @@ MonoBehaviour: ...@@ -69,7 +69,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 945 width: 1900
height: 36 height: 36
m_MinSize: {x: 50, y: 50} m_MinSize: {x: 50, y: 50}
m_MaxSize: {x: 4000, y: 4000} m_MaxSize: {x: 4000, y: 4000}
...@@ -91,7 +91,7 @@ MonoBehaviour: ...@@ -91,7 +91,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 1015 y: 1015
width: 945 width: 1900
height: 20 height: 20
m_MinSize: {x: 0, y: 0} m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0}
...@@ -114,7 +114,7 @@ MonoBehaviour: ...@@ -114,7 +114,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 36 y: 36
width: 945 width: 1900
height: 979 height: 979
m_MinSize: {x: 300, y: 112} m_MinSize: {x: 300, y: 112}
m_MaxSize: {x: 24288, y: 16192} m_MaxSize: {x: 24288, y: 16192}
...@@ -140,7 +140,7 @@ MonoBehaviour: ...@@ -140,7 +140,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 699 width: 1405
height: 979 height: 979
m_MinSize: {x: 200, y: 112} m_MinSize: {x: 200, y: 112}
m_MaxSize: {x: 16192, y: 16192} m_MaxSize: {x: 16192, y: 16192}
...@@ -166,7 +166,7 @@ MonoBehaviour: ...@@ -166,7 +166,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 699 width: 1405
height: 630 height: 630
m_MinSize: {x: 200, y: 56} m_MinSize: {x: 200, y: 56}
m_MaxSize: {x: 16192, y: 8096} m_MaxSize: {x: 16192, y: 8096}
...@@ -190,7 +190,7 @@ MonoBehaviour: ...@@ -190,7 +190,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 152 width: 306
height: 630 height: 630
m_MinSize: {x: 201, y: 226} m_MinSize: {x: 201, y: 226}
m_MaxSize: {x: 4001, y: 4026} m_MaxSize: {x: 4001, y: 4026}
...@@ -214,9 +214,9 @@ MonoBehaviour: ...@@ -214,9 +214,9 @@ MonoBehaviour:
m_Children: [] m_Children: []
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 152 x: 306
y: 0 y: 0
width: 547 width: 1099
height: 630 height: 630
m_MinSize: {x: 202, y: 226} m_MinSize: {x: 202, y: 226}
m_MaxSize: {x: 4002, y: 4026} m_MaxSize: {x: 4002, y: 4026}
...@@ -243,7 +243,7 @@ MonoBehaviour: ...@@ -243,7 +243,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 630 y: 630
width: 699 width: 1405
height: 349 height: 349
m_MinSize: {x: 101, y: 126} m_MinSize: {x: 101, y: 126}
m_MaxSize: {x: 4001, y: 4026} m_MaxSize: {x: 4001, y: 4026}
...@@ -271,9 +271,9 @@ MonoBehaviour: ...@@ -271,9 +271,9 @@ MonoBehaviour:
m_Children: [] m_Children: []
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 699 x: 1405
y: 0 y: 0
width: 246 width: 495
height: 979 height: 979
m_MinSize: {x: 276, y: 76} m_MinSize: {x: 276, y: 76}
m_MaxSize: {x: 4001, y: 4026} m_MaxSize: {x: 4001, y: 4026}
...@@ -305,7 +305,7 @@ MonoBehaviour: ...@@ -305,7 +305,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 945 width: 1900
height: 36 height: 36
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
...@@ -688,7 +688,7 @@ MonoBehaviour: ...@@ -688,7 +688,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 24 y: 24
width: 151 width: 305
height: 604 height: 604
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
...@@ -760,9 +760,9 @@ MonoBehaviour: ...@@ -760,9 +760,9 @@ MonoBehaviour:
m_TextWithWhitespace: "Scene\u200B" m_TextWithWhitespace: "Scene\u200B"
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 153 x: 307
y: 24 y: 24
width: 545 width: 1097
height: 604 height: 604
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
...@@ -1390,7 +1390,7 @@ MonoBehaviour: ...@@ -1390,7 +1390,7 @@ MonoBehaviour:
m_AudioPlay: 0 m_AudioPlay: 0
m_DebugDrawModesUseInteractiveLightBakingData: 0 m_DebugDrawModesUseInteractiveLightBakingData: 0
m_Position: m_Position:
m_Target: {x: 1037.1837, y: 550.4275, z: -4.892332} m_Target: {x: 1128.4576, y: 508.79657, z: -5.7610807}
speed: 2 speed: 2
m_Value: {x: 1037.1837, y: 550.4275, z: -4.892332} m_Value: {x: 1037.1837, y: 550.4275, z: -4.892332}
m_RenderMode: 0 m_RenderMode: 0
...@@ -1442,7 +1442,7 @@ MonoBehaviour: ...@@ -1442,7 +1442,7 @@ MonoBehaviour:
speed: 2 speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1} m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size: m_Size:
m_Target: 615.4106 m_Target: 702.2857
speed: 2 speed: 2
m_Value: 615.4106 m_Value: 615.4106
m_Ortho: m_Ortho:
...@@ -1761,7 +1761,7 @@ MonoBehaviour: ...@@ -1761,7 +1761,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 654 y: 654
width: 698 width: 1404
height: 323 height: 323
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
...@@ -1960,9 +1960,9 @@ MonoBehaviour: ...@@ -1960,9 +1960,9 @@ MonoBehaviour:
m_TextWithWhitespace: "Inspector\u200B" m_TextWithWhitespace: "Inspector\u200B"
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 700 x: 1406
y: 24 y: 24
width: 245 width: 494
height: 953 height: 953
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment