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
7e083792
Commit
7e083792
authored
Apr 07, 2026
by
saad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add basemanager class
parent
0a10504d
Changes
20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
667 additions
and
1135 deletions
+667
-1135
Setup_Scene_Built-in.unitypackage.meta
... Machine Pack Demo/Setup_Scene_Built-in.unitypackage.meta
+7
-0
Setup_Scene_URP.unitypackage.meta
...ctory Machine Pack Demo/Setup_Scene_URP.unitypackage.meta
+7
-0
ItemIcons_(x2).unitypackage.meta
...nent/Icon_ItemIcons_(x2)/ItemIcons_(x2).unitypackage.meta
+7
-0
PictoIcons_(x2).unitypackage.meta
...nt/Icon_PictoIcons_(x2)/PictoIcons_(x2).unitypackage.meta
+7
-0
Cartoon FX FREE (old legacy effects).unitypackage.meta
...ts/Cartoon FX FREE (old legacy effects).unitypackage.meta
+7
-0
URP_ExtractMe.unitypackage.meta
...t/Assets/PolygonSciFiCity/URP_ExtractMe.unitypackage.meta
+7
-0
OLD MSQ.unity
My project/Assets/Scenes/MCQ/OLD MSQ.unity
+1
-72
CsGameManager.cs
My project/Assets/ScienceStreet/CS/Scripts/CsGameManager.cs
+174
-278
FutureCar.cs
My project/Assets/ScienceStreet/CS/Scripts/FutureCar.cs
+0
-93
BaseGameManager.cs
...ct/Assets/ScienceStreet/Shared/Scripts/BaseGameManager.cs
+236
-0
BaseGameManager.cs.meta
...sets/ScienceStreet/Shared/Scripts/BaseGameManager.cs.meta
+2
-0
TfGameManager.cs
My project/Assets/ScienceStreet/TF/Scripts/TfGameManager.cs
+90
-119
CS.zip
My project/CS Build/CS Build/CS.zip
+0
-0
Logo.png
My project/CS Build/CS Build/Logo.png
+0
-0
index.html
My project/CS Build/CS Build/index.html
+0
-225
Logo.png
My project/CS Build/Logo.png
+0
-0
index.html
My project/CS Build/index.html
+0
-225
packages-lock.json
My project/Packages/packages-lock.json
+4
-4
EditorUserSettings.asset
My project/UserSettings/EditorUserSettings.asset
+10
-16
CurrentMaximizeLayout.dwlt
My project/UserSettings/Layouts/CurrentMaximizeLayout.dwlt
+108
-103
No files found.
My project/Assets/EKstudio/LowPoly Factory Machine Pack Demo/Setup_Scene_Built-in.unitypackage.meta
0 → 100644
View file @
7e083792
fileFormatVersion: 2
guid: 745e9c17df962b24a80a69d5da8e5d38
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
My project/Assets/EKstudio/LowPoly Factory Machine Pack Demo/Setup_Scene_URP.unitypackage.meta
0 → 100644
View file @
7e083792
fileFormatVersion: 2
guid: d308d9efe86ef6242a75802e1f37de49
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
My project/Assets/GUI PRO Kit - Simple Casual/Sprite/Component/Icon_ItemIcons_(x2)/ItemIcons_(x2).unitypackage.meta
0 → 100644
View file @
7e083792
fileFormatVersion: 2
guid: e5036f96e3c15ea49b96f7ee989dd3c1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
My project/Assets/GUI PRO Kit - Simple Casual/Sprite/Component/Icon_PictoIcons_(x2)/PictoIcons_(x2).unitypackage.meta
0 → 100644
View file @
7e083792
fileFormatVersion: 2
guid: 9e9f7f46a1ba34c338eb95b193ae1327
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
My project/Assets/JMO Assets/Cartoon FX FREE (old legacy effects).unitypackage.meta
0 → 100644
View file @
7e083792
fileFormatVersion: 2
guid: b18b93d4b5d00384ba417df18aeac5a3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
My project/Assets/PolygonSciFiCity/URP_ExtractMe.unitypackage.meta
0 → 100644
View file @
7e083792
fileFormatVersion: 2
guid: 92a80e6f6cd90464b8f87b98fc72999a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
My project/Assets/Scenes/MCQ/OLD MSQ.unity
View file @
7e083792
...
...
@@ -211,8 +211,7 @@ Transform:
m_LocalPosition
:
{
x
:
0
,
y
:
1
,
z
:
-10
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_ConstrainProportionsScale
:
0
m_Children
:
-
{
fileID
:
1399870137
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!114
&603037699
...
...
@@ -517,76 +516,6 @@ Transform:
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1001
&1399870136
PrefabInstance
:
m_ObjectHideFlags
:
0
serializedVersion
:
2
m_Modification
:
serializedVersion
:
3
m_TransformParent
:
{
fileID
:
603037698
}
m_Modifications
:
-
target
:
{
fileID
:
5575199186091687107
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
ShapeModule.radius.value
value
:
40
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
5575199186091687107
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
InitialModule.startSize.scalar
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalPosition.x
value
:
-0.08737
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalPosition.y
value
:
10.40678
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalPosition.z
value
:
108
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalRotation.w
value
:
0.7071068
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalRotation.x
value
:
-0.7071068
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalRotation.y
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalRotation.z
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.x
value
:
-90
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.y
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.z
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
8015466945648444578
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
propertyPath
:
m_Name
value
:
DotFloating
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_RemovedGameObjects
:
[]
m_AddedGameObjects
:
[]
m_AddedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
---
!u!4
&1399870137
stripped
Transform
:
m_CorrespondingSourceObject
:
{
fileID
:
6955428004947038011
,
guid
:
81b128416c1c2356c8d645340d865e65
,
type
:
3
}
m_PrefabInstance
:
{
fileID
:
1399870136
}
m_PrefabAsset
:
{
fileID
:
0
}
---
!u!1
&1878716305
GameObject
:
m_ObjectHideFlags
:
0
...
...
My project/Assets/ScienceStreet/CS/Scripts/CsGameManager.cs
View file @
7e083792
This diff is collapsed.
Click to expand it.
My project/Assets/ScienceStreet/CS/Scripts/FutureCar.cs
deleted
100644 → 0
View file @
0a10504d
using
DG.Tweening
;
using
UnityEngine
;
public
class
FutureCar
:
MonoBehaviour
{
[
Header
(
"Main Settings"
)]
[
Tooltip
(
"Check to float in place, uncheck to move back and forth."
)]
public
bool
isFloatingInPlace
=
true
;
[
Header
(
"Floating Options (Only used if checked above)"
)]
public
float
floatSpeed
=
1f
;
public
float
floatAmplitude
=
0.5f
;
[
Header
(
"Moving Options (Only used if unchecked above)"
)]
public
float
moveSpeed
=
5f
;
public
float
travelDistance
=
20f
;
public
float
rotationSpeed
=
3f
;
private
Vector3
startPosition
;
private
Vector3
targetPosition
;
private
bool
movingToTarget
=
true
;
private
float
initialY
;
void
Start
()
{
// Store the starting spot
startPosition
=
transform
.
position
;
initialY
=
transform
.
position
.
y
;
// Calculate the end of the patrol path based on the car's initial forward direction
targetPosition
=
startPosition
+
(
transform
.
forward
*
travelDistance
);
ApplyFloatingMotion
();
}
// void Update()
// {
// if (isFloatingInPlace)
// {
// ApplyFloatingMotion();
// }
// else
// {
// ApplyPatrolMotion();
// }
// }
private
void
ApplyFloatingMotion
()
{
var
randomDelay
=
Random
.
Range
(
0f
,
1f
);
transform
.
DOMoveY
(
initialY
+
floatAmplitude
,
floatSpeed
)
.
SetEase
(
Ease
.
InOutSine
)
.
SetDelay
(
randomDelay
)
.
SetLoops
(-
1
,
LoopType
.
Yoyo
);
}
private
void
ApplyPatrolMotion
()
{
// Determine which end of the line we are headed to
Vector3
destination
=
movingToTarget
?
targetPosition
:
startPosition
;
// 1. Move the car
transform
.
position
=
Vector3
.
MoveTowards
(
transform
.
position
,
destination
,
moveSpeed
*
Time
.
deltaTime
);
// 2. Rotate the car to face the current destination
Vector3
direction
=
(
destination
-
transform
.
position
).
normalized
;
if
(
direction
!=
Vector3
.
zero
)
{
Quaternion
lookRotation
=
Quaternion
.
LookRotation
(
direction
);
transform
.
rotation
=
Quaternion
.
Slerp
(
transform
.
rotation
,
lookRotation
,
Time
.
deltaTime
*
rotationSpeed
);
}
// 3. If we are very close to the destination, flip the boolean to go the other way
if
(
Vector3
.
Distance
(
transform
.
position
,
destination
)
<
0.1f
)
{
movingToTarget
=
!
movingToTarget
;
}
}
// This helps you see the path in the Scene View without pressing play
private
void
OnDrawGizmosSelected
()
{
if
(!
isFloatingInPlace
)
{
Gizmos
.
color
=
Color
.
cyan
;
Vector3
endPoint
=
Application
.
isPlaying
?
targetPosition
:
transform
.
position
+
(
transform
.
forward
*
travelDistance
);
Vector3
startPoint
=
Application
.
isPlaying
?
startPosition
:
transform
.
position
;
Gizmos
.
DrawLine
(
startPoint
,
endPoint
);
Gizmos
.
DrawWireSphere
(
endPoint
,
0.5f
);
}
}
}
My project/Assets/ScienceStreet/Shared/Scripts/BaseGameManager.cs
0 → 100644
View file @
7e083792
This diff is collapsed.
Click to expand it.
My project/Assets/ScienceStreet/
CS/Scripts/FutureCa
r.cs.meta
→
My project/Assets/ScienceStreet/
Shared/Scripts/BaseGameManage
r.cs.meta
View file @
7e083792
fileFormatVersion: 2
guid: c7f3fdf6e62442c5485a9ff394896b54
\ No newline at end of file
guid: 42fbf78681728ed4d92e5b86342792b3
\ No newline at end of file
My project/Assets/ScienceStreet/TF/Scripts/TfGameManager.cs
View file @
7e083792
This diff is collapsed.
Click to expand it.
My project/CS Build/CS Build/CS.zip
deleted
100644 → 0
View file @
0a10504d
File deleted
My project/CS Build/CS Build/Logo.png
deleted
100644 → 0
View file @
0a10504d
10.7 KB
My project/CS Build/CS Build/index.html
deleted
100644 → 0
View file @
0a10504d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no"
>
<title>
Correct The Sentence
</title>
<!-- ═══ ANTI-CACHE ═══ -->
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
>
<meta
http-equiv=
"Expires"
content=
"0"
>
<!-- ═══ PRECONNECT TO CDN — speeds up HLS chunk fetching ═══ -->
<!-- Replace with your actual PeerTube domain -->
<link
rel=
"preconnect"
href=
"https://your-peertube-instance.com"
crossorigin
>
<link
rel=
"dns-prefetch"
href=
"https://your-peertube-instance.com"
>
<!-- ═══ PRELOAD HLS.js — starts downloading before Unity even loads ═══ -->
<link
rel=
"preload"
href=
"https://cdn.jsdelivr.net/npm/hls.js@1.5.17/dist/hls.min.js"
as=
"script"
crossorigin
>
<style>
*
{
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
}
html
,
body
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
background
:
#000
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
'Segoe UI'
,
sans-serif
;
/* Prevent pull-to-refresh on mobile */
overscroll-behavior
:
none
;
touch-action
:
none
;
}
#unity-container
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
#000
;
}
#unity-canvas
{
background
:
#000
;
/* Prevent blurry scaling */
image-rendering
:
-webkit-optimize-contrast
;
image-rendering
:
crisp-edges
;
}
/* ═══ LOADING SCREEN ═══ */
#loading-screen
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
background
:
#000
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
z-index
:
1000
;
transition
:
opacity
0.5s
ease
;
}
#loading-screen
.fade-out
{
opacity
:
0
;
pointer-events
:
none
;
}
#loading-logo
{
max-width
:
200px
;
max-height
:
200px
;
margin-bottom
:
40px
;
animation
:
logoPulse
2s
ease-in-out
infinite
;
}
@keyframes
logoPulse
{
0
%,
100
%
{
transform
:
scale
(
1
);
opacity
:
0.9
;
}
50
%
{
transform
:
scale
(
1.05
);
opacity
:
1
;
}
}
#loading-bar-container
{
width
:
280px
;
height
:
6px
;
background
:
rgba
(
255
,
255
,
255
,
0.1
);
border-radius
:
3px
;
overflow
:
hidden
;
margin-bottom
:
16px
;
}
#loading-bar
{
width
:
0%
;
height
:
100%
;
background
:
#FED700
;
border-radius
:
3px
;
transition
:
width
0.3s
ease
;
box-shadow
:
0
0
10px
rgba
(
254
,
215
,
0
,
0.4
);
}
#loading-text
{
color
:
rgba
(
255
,
255
,
255
,
0.5
);
font-size
:
13px
;
letter-spacing
:
0.5px
;
}
</style>
</head>
<body>
<div
id=
"unity-container"
>
<canvas
id=
"unity-canvas"
tabindex=
"-1"
></canvas>
</div>
<div
id=
"loading-screen"
>
<img
id=
"loading-logo"
src=
"logo.png"
alt=
"Loading"
>
<div
id=
"loading-bar-container"
>
<div
id=
"loading-bar"
></div>
</div>
<div
id=
"loading-text"
>
Loading...
</div>
</div>
<script>
// ═══ 16:9 ASPECT RATIO LOCK ═══
function
resizeCanvas
()
{
var
container
=
document
.
getElementById
(
'unity-container'
);
var
canvas
=
document
.
getElementById
(
'unity-canvas'
);
var
windowW
=
window
.
innerWidth
;
var
windowH
=
window
.
innerHeight
;
var
targetAspect
=
16
/
9
;
var
windowAspect
=
windowW
/
windowH
;
var
canvasW
,
canvasH
;
if
(
windowAspect
>
targetAspect
)
{
canvasH
=
windowH
;
canvasW
=
Math
.
floor
(
windowH
*
targetAspect
);
}
else
{
canvasW
=
windowW
;
canvasH
=
Math
.
floor
(
windowW
/
targetAspect
);
}
canvas
.
style
.
width
=
canvasW
+
'px'
;
canvas
.
style
.
height
=
canvasH
+
'px'
;
canvas
.
width
=
canvasW
;
canvas
.
height
=
canvasH
;
}
window
.
addEventListener
(
'resize'
,
resizeCanvas
);
resizeCanvas
();
// ═══ PRELOAD HLS.js INTO CACHE BEFORE UNITY BOOTS ═══
// This way when the jslib calls ensureHls(), it's already loaded
(
function
()
{
var
hlsScript
=
document
.
createElement
(
'script'
);
hlsScript
.
src
=
'https://cdn.jsdelivr.net/npm/hls.js@1.5.17/dist/hls.min.js'
;
hlsScript
.
async
=
true
;
document
.
head
.
appendChild
(
hlsScript
);
})();
// ═══ UNITY LOADER ═══
var
loadingBar
=
document
.
getElementById
(
'loading-bar'
);
var
loadingText
=
document
.
getElementById
(
'loading-text'
);
var
loadingScreen
=
document
.
getElementById
(
'loading-screen'
);
// Cache-bust the loader URL in development
// Remove the timestamp parameter for production
var
buildUrl
=
"Build"
;
var
cacheBust
=
""
;
// Set to "?t=" + Date.now() during development
var
loaderUrl
=
buildUrl
+
"/CS Build.loader.js"
+
cacheBust
;
var
config
=
{
dataUrl
:
buildUrl
+
"/CS Build.data"
,
frameworkUrl
:
buildUrl
+
"/CS Build.framework.js"
,
codeUrl
:
buildUrl
+
"/CS Build.wasm"
,
streamingAssetsUrl
:
"StreamingAssets"
,
companyName
:
"DefaultCompany"
,
productName
:
"Correct The Sentence"
,
productVersion
:
"0.1.0"
,
// ═══ MEMORY SETTINGS ═══
// Match what you set in Player Settings
// These override if present
};
var
script
=
document
.
createElement
(
"script"
);
script
.
src
=
loaderUrl
;
script
.
onload
=
function
()
{
createUnityInstance
(
document
.
getElementById
(
"unity-canvas"
),
config
,
function
(
progress
)
{
var
pct
=
Math
.
round
(
progress
*
100
);
loadingBar
.
style
.
width
=
pct
+
'%'
;
loadingText
.
textContent
=
pct
<
100
?
'Loading... '
+
pct
+
'%'
:
'Starting...'
;
}
).
then
(
function
(
instance
)
{
loadingScreen
.
classList
.
add
(
'fade-out'
);
setTimeout
(
function
()
{
loadingScreen
.
style
.
display
=
'none'
;
},
600
);
resizeCanvas
();
// ═══ PREVENT ACCIDENTAL NAVIGATION ═══
window
.
addEventListener
(
'beforeunload'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
returnValue
=
''
;
});
}).
catch
(
function
(
message
)
{
loadingText
.
textContent
=
'Error: '
+
message
;
loadingBar
.
style
.
background
=
'#ff3333'
;
console
.
error
(
message
);
});
};
document
.
body
.
appendChild
(
script
);
// ═══ PREVENT CONTEXT MENU ON CANVAS ═══
document
.
getElementById
(
'unity-canvas'
).
addEventListener
(
'contextmenu'
,
function
(
e
)
{
e
.
preventDefault
();
});
// ═══ FOCUS CANVAS ON CLICK (fixes keyboard input) ═══
document
.
addEventListener
(
'click'
,
function
()
{
document
.
getElementById
(
'unity-canvas'
).
focus
();
});
</script>
</body>
</html>
My project/CS Build/Logo.png
deleted
100644 → 0
View file @
0a10504d
10.7 KB
My project/CS Build/index.html
deleted
100644 → 0
View file @
0a10504d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no"
>
<title>
Correct The Sentence
</title>
<!-- ═══ ANTI-CACHE ═══ -->
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
>
<meta
http-equiv=
"Expires"
content=
"0"
>
<!-- ═══ PRECONNECT TO CDN — speeds up HLS chunk fetching ═══ -->
<!-- Replace with your actual PeerTube domain -->
<link
rel=
"preconnect"
href=
"https://your-peertube-instance.com"
crossorigin
>
<link
rel=
"dns-prefetch"
href=
"https://your-peertube-instance.com"
>
<!-- ═══ PRELOAD HLS.js — starts downloading before Unity even loads ═══ -->
<link
rel=
"preload"
href=
"https://cdn.jsdelivr.net/npm/hls.js@1.5.17/dist/hls.min.js"
as=
"script"
crossorigin
>
<style>
*
{
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
}
html
,
body
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
background
:
#000
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
'Segoe UI'
,
sans-serif
;
/* Prevent pull-to-refresh on mobile */
overscroll-behavior
:
none
;
touch-action
:
none
;
}
#unity-container
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
#000
;
}
#unity-canvas
{
background
:
#000
;
/* Prevent blurry scaling */
image-rendering
:
-webkit-optimize-contrast
;
image-rendering
:
crisp-edges
;
}
/* ═══ LOADING SCREEN ═══ */
#loading-screen
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
background
:
#000
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
z-index
:
1000
;
transition
:
opacity
0.5s
ease
;
}
#loading-screen
.fade-out
{
opacity
:
0
;
pointer-events
:
none
;
}
#loading-logo
{
max-width
:
200px
;
max-height
:
200px
;
margin-bottom
:
40px
;
animation
:
logoPulse
2s
ease-in-out
infinite
;
}
@keyframes
logoPulse
{
0
%,
100
%
{
transform
:
scale
(
1
);
opacity
:
0.9
;
}
50
%
{
transform
:
scale
(
1.05
);
opacity
:
1
;
}
}
#loading-bar-container
{
width
:
280px
;
height
:
6px
;
background
:
rgba
(
255
,
255
,
255
,
0.1
);
border-radius
:
3px
;
overflow
:
hidden
;
margin-bottom
:
16px
;
}
#loading-bar
{
width
:
0%
;
height
:
100%
;
background
:
#FED700
;
border-radius
:
3px
;
transition
:
width
0.3s
ease
;
box-shadow
:
0
0
10px
rgba
(
254
,
215
,
0
,
0.4
);
}
#loading-text
{
color
:
rgba
(
255
,
255
,
255
,
0.5
);
font-size
:
13px
;
letter-spacing
:
0.5px
;
}
</style>
</head>
<body>
<div
id=
"unity-container"
>
<canvas
id=
"unity-canvas"
tabindex=
"-1"
></canvas>
</div>
<div
id=
"loading-screen"
>
<img
id=
"loading-logo"
src=
"logo.png"
alt=
"Loading"
>
<div
id=
"loading-bar-container"
>
<div
id=
"loading-bar"
></div>
</div>
<div
id=
"loading-text"
>
Loading...
</div>
</div>
<script>
// ═══ 16:9 ASPECT RATIO LOCK ═══
function
resizeCanvas
()
{
var
container
=
document
.
getElementById
(
'unity-container'
);
var
canvas
=
document
.
getElementById
(
'unity-canvas'
);
var
windowW
=
window
.
innerWidth
;
var
windowH
=
window
.
innerHeight
;
var
targetAspect
=
16
/
9
;
var
windowAspect
=
windowW
/
windowH
;
var
canvasW
,
canvasH
;
if
(
windowAspect
>
targetAspect
)
{
canvasH
=
windowH
;
canvasW
=
Math
.
floor
(
windowH
*
targetAspect
);
}
else
{
canvasW
=
windowW
;
canvasH
=
Math
.
floor
(
windowW
/
targetAspect
);
}
canvas
.
style
.
width
=
canvasW
+
'px'
;
canvas
.
style
.
height
=
canvasH
+
'px'
;
canvas
.
width
=
canvasW
;
canvas
.
height
=
canvasH
;
}
window
.
addEventListener
(
'resize'
,
resizeCanvas
);
resizeCanvas
();
// ═══ PRELOAD HLS.js INTO CACHE BEFORE UNITY BOOTS ═══
// This way when the jslib calls ensureHls(), it's already loaded
(
function
()
{
var
hlsScript
=
document
.
createElement
(
'script'
);
hlsScript
.
src
=
'https://cdn.jsdelivr.net/npm/hls.js@1.5.17/dist/hls.min.js'
;
hlsScript
.
async
=
true
;
document
.
head
.
appendChild
(
hlsScript
);
})();
// ═══ UNITY LOADER ═══
var
loadingBar
=
document
.
getElementById
(
'loading-bar'
);
var
loadingText
=
document
.
getElementById
(
'loading-text'
);
var
loadingScreen
=
document
.
getElementById
(
'loading-screen'
);
// Cache-bust the loader URL in development
// Remove the timestamp parameter for production
var
buildUrl
=
"Build"
;
var
cacheBust
=
""
;
// Set to "?t=" + Date.now() during development
var
loaderUrl
=
buildUrl
+
"/CS Build.loader.js"
+
cacheBust
;
var
config
=
{
dataUrl
:
buildUrl
+
"/CS Build.data"
,
frameworkUrl
:
buildUrl
+
"/CS Build.framework.js"
,
codeUrl
:
buildUrl
+
"/CS Build.wasm"
,
streamingAssetsUrl
:
"StreamingAssets"
,
companyName
:
"DefaultCompany"
,
productName
:
"Correct The Sentence"
,
productVersion
:
"0.1.0"
,
// ═══ MEMORY SETTINGS ═══
// Match what you set in Player Settings
// These override if present
};
var
script
=
document
.
createElement
(
"script"
);
script
.
src
=
loaderUrl
;
script
.
onload
=
function
()
{
createUnityInstance
(
document
.
getElementById
(
"unity-canvas"
),
config
,
function
(
progress
)
{
var
pct
=
Math
.
round
(
progress
*
100
);
loadingBar
.
style
.
width
=
pct
+
'%'
;
loadingText
.
textContent
=
pct
<
100
?
'Loading... '
+
pct
+
'%'
:
'Starting...'
;
}
).
then
(
function
(
instance
)
{
loadingScreen
.
classList
.
add
(
'fade-out'
);
setTimeout
(
function
()
{
loadingScreen
.
style
.
display
=
'none'
;
},
600
);
resizeCanvas
();
// ═══ PREVENT ACCIDENTAL NAVIGATION ═══
window
.
addEventListener
(
'beforeunload'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
returnValue
=
''
;
});
}).
catch
(
function
(
message
)
{
loadingText
.
textContent
=
'Error: '
+
message
;
loadingBar
.
style
.
background
=
'#ff3333'
;
console
.
error
(
message
);
});
};
document
.
body
.
appendChild
(
script
);
// ═══ PREVENT CONTEXT MENU ON CANVAS ═══
document
.
getElementById
(
'unity-canvas'
).
addEventListener
(
'contextmenu'
,
function
(
e
)
{
e
.
preventDefault
();
});
// ═══ FOCUS CANVAS ON CLICK (fixes keyboard input) ═══
document
.
addEventListener
(
'click'
,
function
()
{
document
.
getElementById
(
'unity-canvas'
).
focus
();
});
</script>
</body>
</html>
My project/Packages/packages-lock.json
View file @
7e083792
...
...
@@ -66,14 +66,14 @@
"url"
:
"https://packages.unity.com"
},
"com.unity.collections"
:
{
"version"
:
"2.6.
5
"
,
"version"
:
"2.6.
2
"
,
"depth"
:
1
,
"source"
:
"registry"
,
"dependencies"
:
{
"com.unity.burst"
:
"1.8.2
7
"
,
"com.unity.burst"
:
"1.8.2
3
"
,
"com.unity.mathematics"
:
"1.3.2"
,
"com.unity.test-framework"
:
"1.4.6"
,
"com.unity.nuget.mono-cecil"
:
"1.11.
6
"
,
"com.unity.nuget.mono-cecil"
:
"1.11.
5
"
,
"com.unity.test-framework.performance"
:
"3.0.3"
},
"url"
:
"https://packages.unity.com"
...
...
@@ -217,7 +217,7 @@
}
},
"com.unity.splines"
:
{
"version"
:
"2.8.
4
"
,
"version"
:
"2.8.
2
"
,
"depth"
:
1
,
"source"
:
"registry"
,
"dependencies"
:
{
...
...
My project/UserSettings/EditorUserSettings.asset
View file @
7e083792
...
...
@@ -8,41 +8,35 @@ EditorUserSettings:
GraphicsSettingsInspector_UserSettings
:
value
:
18134705175a055722080a3115371d4a0d55006876786860616b0471b8b2656eacb72ba5a52a362c3c0ee63201181433fe3e101bf3250b06144ca74c24f1190708e016c213c61a52f91c12cac80fd8edd298e1e4d1fde2cacddeacbcc1fee7eef0e3b6faa69af9ceaeaaec81a6d2c2c8c8c4b2e5dfd5ccd3f8cf
flags
:
0
QuickInstaller_com.unity.purchasing_installRecorded
:
value
:
2550581500
flags
:
0
QuickInstaller_com.unity.services.levelplay_installRecorded
:
value
:
2550581500
flags
:
0
RecentlyUsedSceneGuid-0
:
value
:
5
45005025c000d0b0f5c087516715944424e4d7b747e2568287e4c64b6e1316e
value
:
5
208560200560f090f5d5e2743730e444516192b757e23667b7e4863b4e36c39
flags
:
0
RecentlyUsedSceneGuid-1
:
value
:
0003525055055d020e0b0a7216755d444215417e787d27362e2f4866b2e1323e
value
:
5200570406560d58095e5c75432609124f154e737a2d2432787e4b62b4e1366a
flags
:
0
RecentlyUsedSceneGuid-2
:
value
:
5
305515503010a0e0f580977147208444e151a78787b726775711931bbe1613
e
value
:
5
45005025c000d0b0f5c087516715944424e4d7b747e2568287e4c64b6e1316
e
flags
:
0
RecentlyUsedSceneGuid-3
:
value
:
530
4575f5c0c51035d5a5e771271594417154e7c2d7b70647b7b4c35bbe1646d
value
:
530
5515503010a0e0f580977147208444e151a78787b726775711931bbe1613e
flags
:
0
RecentlyUsedSceneGuid-4
:
value
:
0752035101010f0c54595b2046760e44134e4e7a7f7d71677c2c4836b7b4633e
value
:
52080c51560d5f03580b5e7242700c4446164f7d2e7f77612c281f32e0b8603d
flags
:
0
RecentlyUsedSceneGuid-5
:
value
:
5701055506000a030f5c542744260844404f4d73797975367c2c1e6ab7e2653d
value
:
060203560401505a595d0a7345200d44404e1b7e2d707e617b7f4d63e7b6606b
flags
:
0
RecentlyUsedSceneGuid-6
:
value
:
0
60203560401505a595d0a7345200d44404e1b7e2d707e617b7f4d63e7b6606b
value
:
0
003525055055d020e0b0a7216755d444215417e787d27362e2f4866b2e1323e
flags
:
0
RecentlyUsedSceneGuid-7
:
value
:
5
50051035503595d5d0a5975167a0e44144e40797a7924632b7c456bb7b23260
value
:
5
701055506000a030f5c542744260844404f4d73797975367c2c1e6ab7e2653d
flags
:
0
RecentlyUsedSceneGuid-8
:
value
:
52080c51560d5f03580b5e7242700c4446164f7d2e7f77612c281f32e0b8603d
value
:
0752035101010f0c54595b2046760e44134e4e7a7f7d71677c2c4836b7b4633e
flags
:
0
RecentlyUsedSceneGuid-9
:
value
:
5
1070402040250035b0d097b42250e44434e19737d7b7f617c7b4c63e3b33068
value
:
5
304575f5c0c51035d5a5e771271594417154e7c2d7b70647b7b4c35bbe1646d
flags
:
0
UnityEditor.ShaderGraph.Blackboard
:
value
:
18135939215a0a5004000b0e15254b524c030a3f2964643d120d1230e9e93a3fd6e826abbd2e2d293c4ead313b08042de6030a0afa240c0d020be94c4ba75e435d8715fa32c70d15d11612dacc11fee5d3c5d1fe9ab1bf968e93e2ffcbc3e7e2f0b3ffe0e8b0be9af8ffaeffff8e85dd8390e3949c8899daa7
...
...
My project/UserSettings/Layouts/CurrentMaximizeLayout.dwlt
View file @
7e083792
This diff is collapsed.
Click to expand it.
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