Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SSBookMinigames
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
SSBookMinigames
Commits
d4cfc2fc
Commit
d4cfc2fc
authored
Apr 12, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Add MCQ gate pooling, road mesh combining, fix tick audio & navigation guards"
parent
c59801ad
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
2 deletions
+39
-2
AppRouter.cs
My project/Assets/App/Infrastructure/Core/AppRouter.cs
+20
-0
HomeController.cs
My project/Assets/App/UI/HomeController.cs
+10
-0
MainmenuAnimation.cs
My project/Assets/AppUI/Scripts/MainmenuAnimation.cs
+1
-0
PerformanceTestRunInfo.json
My project/Assets/Resources/PerformanceTestRunInfo.json
+0
-1
PerformanceTestRunSettings.json
My project/Assets/Resources/PerformanceTestRunSettings.json
+0
-1
CsGameManager.cs
My project/Assets/ScienceStreet/CS/Scripts/CsGameManager.cs
+4
-0
McqGameManager.cs
...roject/Assets/ScienceStreet/MCQ/Scripts/McqGameManager.cs
+4
-0
No files found.
My project/Assets/App/Infrastructure/Core/AppRouter.cs
View file @
d4cfc2fc
...
@@ -31,6 +31,26 @@ public class AppRouter : MonoBehaviour
...
@@ -31,6 +31,26 @@ public class AppRouter : MonoBehaviour
DontDestroyOnLoad
(
gameObject
);
DontDestroyOnLoad
(
gameObject
);
Application
.
targetFrameRate
=
Screen
.
currentResolution
.
refreshRate
;
Application
.
targetFrameRate
=
Screen
.
currentResolution
.
refreshRate
;
Screen
.
orientation
=
ScreenOrientation
.
Portrait
;
}
private
void
Update
()
{
if
(
Input
.
GetKeyDown
(
KeyCode
.
Escape
))
HandleBackButton
();
}
private
void
HandleBackButton
()
{
// Don't interrupt active challenges
if
(
ChallengeManager
.
Instance
!=
null
&&
ChallengeManager
.
Instance
.
IsChallengeRunning
)
return
;
var
scene
=
SceneManager
.
GetActiveScene
().
name
;
if
(
scene
==
"MainMenu"
)
Application
.
Quit
();
else
if
(
scene
!=
"Login"
&&
scene
!=
"Boot"
)
GoToHome
();
}
}
private
async
void
Start
()
private
async
void
Start
()
...
...
My project/Assets/App/UI/HomeController.cs
View file @
d4cfc2fc
...
@@ -30,6 +30,9 @@ public class HomeController : MonoBehaviour
...
@@ -30,6 +30,9 @@ public class HomeController : MonoBehaviour
private
VisualElement
menuPanel
;
private
VisualElement
menuPanel
;
// Navigation guard — prevents concurrent Challenge + Practice clicks
public
static
bool
IsNavigating
{
get
;
private
set
;
}
void
Start
()
void
Start
()
{
{
var
root
=
mainMenuDocument
.
rootVisualElement
.
Q
(
"Home"
);
var
root
=
mainMenuDocument
.
rootVisualElement
.
Q
(
"Home"
);
...
@@ -135,6 +138,12 @@ public class HomeController : MonoBehaviour
...
@@ -135,6 +138,12 @@ public class HomeController : MonoBehaviour
private
void
OnChallengeButtonClicked
()
private
void
OnChallengeButtonClicked
()
{
{
if
(
IsNavigating
)
return
;
IsNavigating
=
true
;
challengeButton
.
SetEnabled
(
false
);
if
(
practiceButton
!=
null
)
practiceButton
.
SetEnabled
(
false
);
var
challenge
=
Instantiate
(
challengePrefab
);
var
challenge
=
Instantiate
(
challengePrefab
);
var
challengeManager
=
challenge
.
GetComponent
<
ChallengeManager
>();
var
challengeManager
=
challenge
.
GetComponent
<
ChallengeManager
>();
...
@@ -143,6 +152,7 @@ public class HomeController : MonoBehaviour
...
@@ -143,6 +152,7 @@ public class HomeController : MonoBehaviour
private
void
OnDestroy
()
private
void
OnDestroy
()
{
{
IsNavigating
=
false
;
UserService
.
Instance
.
OnUserChanged
-=
OnUserChange
;
UserService
.
Instance
.
OnUserChanged
-=
OnUserChange
;
challengeButton
.
clicked
-=
OnChallengeButtonClicked
;
challengeButton
.
clicked
-=
OnChallengeButtonClicked
;
}
}
...
...
My project/Assets/AppUI/Scripts/MainmenuAnimation.cs
View file @
d4cfc2fc
...
@@ -105,6 +105,7 @@ public class MainmenuAnimation : MonoBehaviour
...
@@ -105,6 +105,7 @@ public class MainmenuAnimation : MonoBehaviour
openPracticeButton
.
clicked
+=
()
=>
openPracticeButton
.
clicked
+=
()
=>
{
{
if
(
HomeController
.
IsNavigating
)
return
;
SelectGamePanel
.
style
.
display
=
DisplayStyle
.
Flex
;
SelectGamePanel
.
style
.
display
=
DisplayStyle
.
Flex
;
SelectGamePanel
.
experimental
.
animation
.
Start
(
0
,
1
,
200
,
(
v
,
t
)
=>
SelectGamePanel
.
experimental
.
animation
.
Start
(
0
,
1
,
200
,
(
v
,
t
)
=>
{
{
...
...
My project/Assets/Resources/PerformanceTestRunInfo.json
deleted
100644 → 0
View file @
c59801ad
{
"TestSuite"
:
""
,
"Date"
:
0
,
"Player"
:{
"Development"
:
false
,
"ScreenWidth"
:
0
,
"ScreenHeight"
:
0
,
"ScreenRefreshRate"
:
0
,
"Fullscreen"
:
false
,
"Vsync"
:
0
,
"AntiAliasing"
:
0
,
"Batchmode"
:
false
,
"RenderThreadingMode"
:
"MultiThreaded"
,
"MtRendering"
:
false
,
"GraphicsJobs"
:
false
,
"GpuSkinning"
:
true
,
"Platform"
:
""
,
"ColorSpace"
:
""
,
"AnisotropicFiltering"
:
""
,
"BlendWeights"
:
""
,
"GraphicsApi"
:
""
,
"ScriptingBackend"
:
"IL2CPP"
,
"AndroidTargetSdkVersion"
:
"AndroidApiLevelAuto"
,
"AndroidBuildSystem"
:
"Gradle"
,
"BuildTarget"
:
"Android"
,
"StereoRenderingPath"
:
"MultiPass"
},
"Hardware"
:{
"OperatingSystem"
:
""
,
"DeviceModel"
:
""
,
"DeviceName"
:
""
,
"ProcessorType"
:
""
,
"ProcessorCount"
:
0
,
"GraphicsDeviceName"
:
""
,
"SystemMemorySizeMB"
:
0
},
"Editor"
:{
"Version"
:
"6000.3.9f1"
,
"Branch"
:
"6000.3/staging"
,
"Changeset"
:
"7a9955a4f2fa"
,
"Date"
:
1770746648
},
"Dependencies"
:[
"com.cysharp.unitask@2.5.10"
,
"com.github-glitchenzo.nugetforunity@4.5.0"
,
"com.unity.2d.sprite@1.0.0"
,
"com.unity.ai.navigation@2.0.11"
,
"com.unity.cinemachine@3.1.6"
,
"com.unity.collab-proxy@2.11.4"
,
"com.unity.ide.rider@3.0.39"
,
"com.unity.ide.visualstudio@2.0.26"
,
"com.unity.inputsystem@1.19.0"
,
"com.unity.multiplayer.center@1.0.1"
,
"com.unity.nuget.newtonsoft-json@3.2.2"
,
"com.unity.postprocessing@3.5.4"
,
"com.unity.recorder@5.1.6"
,
"com.unity.render-pipelines.universal@17.3.0"
,
"com.unity.shadergraph@17.3.0"
,
"com.unity.test-framework@1.6.0"
,
"com.unity.timeline@1.8.11"
,
"com.unity.ugui@2.0.0"
,
"com.unity.visualeffectgraph@17.3.0"
,
"com.unity.visualscripting@1.9.11"
,
"media.lightside.unitext@1.0.0"
,
"com.unity.modules.accessibility@1.0.0"
,
"com.unity.modules.adaptiveperformance@1.0.0"
,
"com.unity.modules.ai@1.0.0"
,
"com.unity.modules.androidjni@1.0.0"
,
"com.unity.modules.animation@1.0.0"
,
"com.unity.modules.assetbundle@1.0.0"
,
"com.unity.modules.audio@1.0.0"
,
"com.unity.modules.cloth@1.0.0"
,
"com.unity.modules.director@1.0.0"
,
"com.unity.modules.imageconversion@1.0.0"
,
"com.unity.modules.imgui@1.0.0"
,
"com.unity.modules.jsonserialize@1.0.0"
,
"com.unity.modules.particlesystem@1.0.0"
,
"com.unity.modules.physics@1.0.0"
,
"com.unity.modules.physics2d@1.0.0"
,
"com.unity.modules.screencapture@1.0.0"
,
"com.unity.modules.terrain@1.0.0"
,
"com.unity.modules.terrainphysics@1.0.0"
,
"com.unity.modules.tilemap@1.0.0"
,
"com.unity.modules.ui@1.0.0"
,
"com.unity.modules.uielements@1.0.0"
,
"com.unity.modules.umbra@1.0.0"
,
"com.unity.modules.unityanalytics@1.0.0"
,
"com.unity.modules.unitywebrequest@1.0.0"
,
"com.unity.modules.unitywebrequestassetbundle@1.0.0"
,
"com.unity.modules.unitywebrequestaudio@1.0.0"
,
"com.unity.modules.unitywebrequesttexture@1.0.0"
,
"com.unity.modules.unitywebrequestwww@1.0.0"
,
"com.unity.modules.vectorgraphics@1.0.0"
,
"com.unity.modules.vehicles@1.0.0"
,
"com.unity.modules.video@1.0.0"
,
"com.unity.modules.vr@1.0.0"
,
"com.unity.modules.wind@1.0.0"
,
"com.unity.modules.xr@1.0.0"
,
"com.unity.modules.subsystems@1.0.0"
,
"com.unity.modules.hierarchycore@1.0.0"
,
"com.unity.render-pipelines.core@17.3.0"
,
"com.unity.ext.nunit@2.0.5"
,
"com.unity.searcher@4.9.4"
,
"com.unity.render-pipelines.universal-config@17.0.3"
,
"com.unity.collections@2.6.2"
,
"com.unity.bindings.openimageio@1.0.2"
,
"com.unity.splines@2.8.2"
,
"com.unity.burst@1.8.28"
,
"com.unity.mathematics@1.3.3"
,
"com.unity.nuget.mono-cecil@1.11.6"
,
"com.unity.test-framework.performance@3.2.0"
,
"com.unity.settings-manager@2.1.1"
],
"Results"
:[]}
\ No newline at end of file
My project/Assets/Resources/PerformanceTestRunSettings.json
deleted
100644 → 0
View file @
c59801ad
{
"MeasurementCount"
:
-1
}
\ No newline at end of file
My project/Assets/ScienceStreet/CS/Scripts/CsGameManager.cs
View file @
d4cfc2fc
...
@@ -398,6 +398,8 @@ namespace com.al_arcade.cs
...
@@ -398,6 +398,8 @@ namespace com.al_arcade.cs
// ─── End sequences ────────────────────────────────────────────────────
// ─── End sequences ────────────────────────────────────────────────────
protected
override
IEnumerator
SharedVictorySequence
()
protected
override
IEnumerator
SharedVictorySequence
()
{
{
if
(
_isTicking
)
{
_isTicking
=
false
;
SSAudioManager
.
Instance
?.
Tick
(
false
);
}
var
audio
=
SSAudioManager
.
Instance
;
var
audio
=
SSAudioManager
.
Instance
;
audio
.
PlayVictory
();
audio
.
PlayVictory
();
...
@@ -427,6 +429,8 @@ namespace com.al_arcade.cs
...
@@ -427,6 +429,8 @@ namespace com.al_arcade.cs
protected
override
IEnumerator
SharedLoseSequence
()
protected
override
IEnumerator
SharedLoseSequence
()
{
{
if
(
_isTicking
)
{
_isTicking
=
false
;
SSAudioManager
.
Instance
?.
Tick
(
false
);
}
SSAudioManager
.
Instance
.
PlayDefeat
();
SSAudioManager
.
Instance
.
PlayDefeat
();
onGameComplete
?.
Invoke
(
_score
);
onGameComplete
?.
Invoke
(
_score
);
SSAudioManager
.
Instance
.
StopMusic
();
SSAudioManager
.
Instance
.
StopMusic
();
...
...
My project/Assets/ScienceStreet/MCQ/Scripts/McqGameManager.cs
View file @
d4cfc2fc
...
@@ -629,6 +629,8 @@ namespace com.al_arcade.mcq
...
@@ -629,6 +629,8 @@ namespace com.al_arcade.mcq
// ─── End Sequences ───────────────────────────────────────────────────
// ─── End Sequences ───────────────────────────────────────────────────
protected
override
IEnumerator
SharedVictorySequence
()
protected
override
IEnumerator
SharedVictorySequence
()
{
{
if
(
_isTicking
)
{
_isTicking
=
false
;
SSAudioManager
.
Instance
?.
Tick
(
false
);
}
var
audio
=
SSAudioManager
.
Instance
;
var
audio
=
SSAudioManager
.
Instance
;
if
(
audio
!=
null
)
if
(
audio
!=
null
)
{
{
...
@@ -653,6 +655,8 @@ namespace com.al_arcade.mcq
...
@@ -653,6 +655,8 @@ namespace com.al_arcade.mcq
protected
override
IEnumerator
SharedLoseSequence
()
protected
override
IEnumerator
SharedLoseSequence
()
{
{
if
(
_isTicking
)
{
_isTicking
=
false
;
SSAudioManager
.
Instance
?.
Tick
(
false
);
}
StopPlayerAndCompetitor
();
StopPlayerAndCompetitor
();
var
audio
=
SSAudioManager
.
Instance
;
var
audio
=
SSAudioManager
.
Instance
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment