Compare commits
9 Commits
v1.0.0-sta
...
e0b7ec84fd
Author | SHA1 | Date | |
---|---|---|---|
e0b7ec84fd | |||
fb89b825e1 | |||
a8194fbe5c | |||
29f352513e | |||
ee11e683f6 | |||
fb107f9020 | |||
efeae89ac3 | |||
a7a527cfcc | |||
54be935d7c |
@ -7,7 +7,7 @@ charset = utf-8
|
||||
indent_style = space
|
||||
end_of_line = lf
|
||||
|
||||
[*.asmdef]
|
||||
[*.{json,jsonc,asmdef}]
|
||||
indent_size = 4
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
@ -28,11 +28,6 @@ indent_style = tab
|
||||
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
|
||||
indent_size = 2
|
||||
|
||||
[*.{json,jsonc}]
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.builds]
|
||||
indent_size = 2
|
||||
|
||||
|
168
.github/workflows/ci.yml
vendored
@ -2,20 +2,16 @@ name: "ci"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop, staging, main]
|
||||
branches: [develop]
|
||||
pull_request:
|
||||
branches: [develop, staging, main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
lint-commit:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v4.2.2"
|
||||
- uses: "wagoid/commitlint-github-action@v6.2.1"
|
||||
- uses: "wagoid/commitlint-github-action@v6.1.2"
|
||||
|
||||
lint-editorconfig-checker:
|
||||
runs-on: "ubuntu-latest"
|
||||
@ -24,80 +20,38 @@ jobs:
|
||||
- uses: "editorconfig-checker/action-editorconfig-checker@main"
|
||||
- run: "editorconfig-checker"
|
||||
|
||||
build-windows:
|
||||
# test:
|
||||
# permissions:
|
||||
# checks: "write"
|
||||
# runs-on: "ubuntu-latest"
|
||||
# steps:
|
||||
# - uses: "actions/checkout@v4.2.2"
|
||||
# with:
|
||||
# lfs: true
|
||||
|
||||
# - uses: "actions/cache@v4.2.0"
|
||||
# with:
|
||||
# path: "Library"
|
||||
# key: "Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}"
|
||||
# restore-keys: |
|
||||
# "Library-"
|
||||
|
||||
# - uses: "game-ci/unity-test-runner@v4.3.1"
|
||||
# env:
|
||||
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||
# with:
|
||||
# githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build:
|
||||
runs-on: "ubuntu-latest"
|
||||
outputs:
|
||||
build-path: ${{ steps.upload.outputs.path }}
|
||||
steps:
|
||||
- uses: "actions/checkout@v4.2.2"
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- uses: "actions/cache@v4.2.3"
|
||||
with:
|
||||
path: "Library"
|
||||
key: "Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}"
|
||||
restore-keys: |
|
||||
"Library-"
|
||||
|
||||
- uses: "game-ci/unity-builder@v4.3.0"
|
||||
env:
|
||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||
with:
|
||||
targetPlatform: "StandaloneWindows64"
|
||||
|
||||
- name: Upload Windows Build Artifact
|
||||
id: upload
|
||||
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
|
||||
uses: actions/upload-artifact@v4.4.3
|
||||
with:
|
||||
name: build-windows
|
||||
path: build/
|
||||
|
||||
build-macos:
|
||||
runs-on: "ubuntu-latest"
|
||||
outputs:
|
||||
build-path: ${{ steps.upload.outputs.path }}
|
||||
steps:
|
||||
- uses: "actions/checkout@v4.2.2"
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- uses: "actions/cache@v4.2.3"
|
||||
with:
|
||||
path: "Library"
|
||||
key: "Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}"
|
||||
restore-keys: |
|
||||
"Library-"
|
||||
|
||||
- uses: "game-ci/unity-builder@v4.3.0"
|
||||
env:
|
||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||
with:
|
||||
targetPlatform: "StandaloneOSX"
|
||||
|
||||
- name: Upload macOS Build Artifact
|
||||
id: upload
|
||||
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
|
||||
uses: actions/upload-artifact@v4.3.0
|
||||
with:
|
||||
name: build-macos
|
||||
path: build/
|
||||
|
||||
build-linux:
|
||||
runs-on: "ubuntu-latest"
|
||||
outputs:
|
||||
build-path: ${{ steps.upload.outputs.path }}
|
||||
steps:
|
||||
- uses: "actions/checkout@v4.2.2"
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- uses: "actions/cache@v4.2.3"
|
||||
- uses: "actions/cache@v4.2.0"
|
||||
with:
|
||||
path: "Library"
|
||||
key: "Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}"
|
||||
@ -112,65 +66,7 @@ jobs:
|
||||
with:
|
||||
targetPlatform: "StandaloneLinux64"
|
||||
|
||||
- name: Upload Linux Build Artifact
|
||||
id: upload
|
||||
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
|
||||
uses: actions/upload-artifact@v4.6.2
|
||||
with:
|
||||
name: build-linux
|
||||
path: build/
|
||||
|
||||
create-release:
|
||||
needs: [build-windows, build-macos, build-linux]
|
||||
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get version from commit message
|
||||
id: get_version
|
||||
run: |
|
||||
COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
|
||||
# Extract the version number after "chore(release): "
|
||||
VERSION=$(echo "$COMMIT_MESSAGE" | sed -n 's/^chore(release): \(v[0-9]*\.[0-9]*\.[0-9]*[-a-zA-Z0-9.]*\).*$/\1/p')
|
||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
shell: bash
|
||||
|
||||
- name: Download Windows Build Artifact
|
||||
uses: actions/download-artifact@v4.3.0
|
||||
with:
|
||||
name: build-windows
|
||||
path: build/windows
|
||||
|
||||
- name: Download macOS Build Artifact
|
||||
uses: actions/download-artifact@v4.3.0
|
||||
with:
|
||||
name: build-macos
|
||||
path: build/macos
|
||||
|
||||
- name: Download Linux Build Artifact
|
||||
uses: actions/download-artifact@v4.3.0
|
||||
with:
|
||||
name: build-linux
|
||||
path: build/linux
|
||||
|
||||
- name: Zip Builds
|
||||
run: |
|
||||
cd build/windows
|
||||
zip -r ../windows.zip .
|
||||
cd ../macos
|
||||
zip -r ../macos.zip .
|
||||
cd ../linux
|
||||
zip -r ../linux.zip .
|
||||
|
||||
- name: Create GitHub Release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v2.2.2
|
||||
with:
|
||||
tag_name: ${{ steps.get_version.outputs.version }}
|
||||
name: ${{ steps.get_version.outputs.version }}
|
||||
body: |
|
||||
🎮 Automatic ${{ github.ref == 'refs/heads/main' && 'Production' || 'Pre-release' }} build
|
||||
prerelease: ${{ github.ref != 'refs/heads/main' }}
|
||||
files: |
|
||||
build/windows.zip
|
||||
build/macos.zip
|
||||
build/linux.zip
|
||||
# - uses: "actions/upload-artifact@v4.4.3"
|
||||
# with:
|
||||
# name: "Build"
|
||||
# path: "build"
|
||||
|
14
.vscode/extensions.json
vendored
@ -1,9 +1,9 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"editorconfig.editorconfig",
|
||||
"jebbs.plantuml",
|
||||
"visualstudiotoolsforunity.vstuc",
|
||||
"ms-dotnettools.csharp",
|
||||
"ms-dotnettools.csdevkit"
|
||||
]
|
||||
"recommendations": [
|
||||
"editorconfig.editorconfig",
|
||||
"jebbs.plantuml",
|
||||
"visualstudiotoolsforunity.vstuc",
|
||||
"ms-dotnettools.csharp",
|
||||
"ms-dotnettools.csdevkit"
|
||||
]
|
||||
}
|
||||
|
16
.vscode/launch.json
vendored
@ -1,10 +1,10 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Attach to Unity",
|
||||
"type": "vstuc",
|
||||
"request": "attach"
|
||||
}
|
||||
]
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Attach to Unity",
|
||||
"type": "vstuc",
|
||||
"request": "attach"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
16
.vscode/settings.json
vendored
@ -1,10 +1,10 @@
|
||||
{
|
||||
"editor.bracketPairColorization.enabled": true,
|
||||
"editor.wordWrap": "on",
|
||||
"[csharp]": {
|
||||
"editor.tabSize": 4,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnType": true
|
||||
},
|
||||
"omnisharp.useModernNet": false
|
||||
"editor.bracketPairColorization.enabled": true,
|
||||
"editor.wordWrap": "on",
|
||||
"[csharp]": {
|
||||
"editor.tabSize": 4,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnType": true
|
||||
},
|
||||
"omnisharp.useModernNet": false
|
||||
}
|
||||
|
@ -1,80 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &3654053280041398781
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4104371471751400115}
|
||||
- component: {fileID: 1415423667558431683}
|
||||
m_Layer: 0
|
||||
m_Name: AICollider
|
||||
m_TagString: AICollider
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4104371471751400115
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3654053280041398781}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 86.53131, y: 53.261993, z: -5.1268225}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!61 &1415423667558431683
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3654053280041398781}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 1
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0, y: 0}
|
||||
oldSize: {x: 0, y: 0}
|
||||
newSize: {x: 0, y: 0}
|
||||
adaptiveTilingThreshold: 0
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 1, y: 1}
|
||||
m_EdgeRadius: 0
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a862ece8e0cd6047ea9e799642c7b31c
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -96,20 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
>>>>>>> develop
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
|
@ -96,19 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
|
@ -1,10 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0426acdd6d763946bab617252a0f5aa
|
||||
guid: b51d2de513d090b4485816dbca782498
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 1925945982471551178
|
||||
second: BlankSquare 1_0
|
||||
213: 6385790085498839582
|
||||
second: BlankSquare_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
@ -100,7 +100,7 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: BlankSquare 1_0
|
||||
name: BlankSquare_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
@ -115,8 +115,8 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: ac8becdbaa55aba10800000000000000
|
||||
internalID: 1925945982471551178
|
||||
spriteID: e12ae58df32ee9850800000000000000
|
||||
internalID: 6385790085498839582
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
@ -134,8 +134,7 @@ TextureImporter:
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
BlankSquare 1_0: 1925945982471551178
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
@ -1,10 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fa5971280ed90e04cafadbd76400bed2
|
||||
guid: eed5a0d2b4493ec4ca90bb1bd7316047
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 6385790085498839582
|
||||
second: BlankSquare_0
|
||||
213: -8811806715494619191
|
||||
second: ExitButton_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
@ -113,13 +113,13 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: BlankSquare_0
|
||||
name: ExitButton_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 512
|
||||
height: 512
|
||||
x: 143
|
||||
y: 123
|
||||
width: 284
|
||||
height: 252
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
@ -128,8 +128,8 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: e12ae58df32ee9850800000000000000
|
||||
internalID: 6385790085498839582
|
||||
spriteID: 9c7aa8daa7c26b580800000000000000
|
||||
internalID: -8811806715494619191
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
@ -148,7 +148,7 @@ TextureImporter:
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
BlankSquare_0: 6385790085498839582
|
||||
ExitButton_0: -8811806715494619191
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
@ -96,19 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
@ -147,8 +134,7 @@ TextureImporter:
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
NewLevelButton 1_0: 4829622404114481491
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
@ -1,10 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: afd28cff37c57da4090ac3ddfdb8ee28
|
||||
guid: 7b0f71ceca28c434ca33829e4a13b313
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -4781373940957465942
|
||||
second: exit_0
|
||||
213: -1958676783162264248
|
||||
second: PlayButton_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
@ -113,13 +113,13 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: exit_0
|
||||
name: PlayButton_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 31
|
||||
y: 31
|
||||
width: 298
|
||||
height: 298
|
||||
x: 280
|
||||
y: 180
|
||||
width: 503
|
||||
height: 545
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
@ -128,8 +128,8 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: aa2bbe6cbb525adb0800000000000000
|
||||
internalID: -4781373940957465942
|
||||
spriteID: 845fecdd7d161d4e0800000000000000
|
||||
internalID: -1958676783162264248
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
@ -148,7 +148,7 @@ TextureImporter:
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
exit_0: -4781373940957465942
|
||||
PlayButton_0: -1958676783162264248
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
@ -96,19 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
@ -147,8 +134,7 @@ TextureImporter:
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
SaveButton_0: 2079131731516339571
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
@ -1,10 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f34830d17508a4b478c164611c202e12
|
||||
guid: 2937fecef4993e64cb555077cf09d377
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 229215520534054086
|
||||
second: RegularBlock01_0
|
||||
213: -1655109142887154325
|
||||
second: SettingsButton_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
@ -113,13 +113,13 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: RegularBlock01_0
|
||||
name: SettingsButton_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 122
|
||||
height: 122
|
||||
x: 63
|
||||
y: 133
|
||||
width: 233
|
||||
height: 92
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
@ -128,8 +128,8 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 6c4407e2d465e2300800000000000000
|
||||
internalID: 229215520534054086
|
||||
spriteID: b6db5b1f00fd709e0800000000000000
|
||||
internalID: -1655109142887154325
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
@ -148,7 +148,7 @@ TextureImporter:
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
RegularBlock01_0: 229215520534054086
|
||||
SettingsButton_0: -1655109142887154325
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
Before Width: | Height: | Size: 103 KiB |
@ -1,156 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1b21bd4ccae70934eb86a3a2a6928e98
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -4781373940957465942
|
||||
second: exit_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: exit_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 31
|
||||
y: 31
|
||||
width: 298
|
||||
height: 298
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: aa2bbe6cbb525adb0800000000000000
|
||||
internalID: -4781373940957465942
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
exit_0: -4781373940957465942
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -96,19 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
|
@ -1,10 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7fe0358ef92ff8a449d0bee123119795
|
||||
guid: 4874b4932ea8df273aafe2c64ec3e05a
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 2079131731516339571
|
||||
second: SaveButton_0
|
||||
213: -8878088185706026076
|
||||
second: pause_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
@ -113,13 +113,13 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: SaveButton_0
|
||||
name: pause_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 980
|
||||
height: 982
|
||||
width: 256
|
||||
height: 256
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
@ -128,8 +128,8 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 375364a4b4f8adc10800000000000000
|
||||
internalID: 2079131731516339571
|
||||
spriteID: 4ab666e45d1bac480800000000000000
|
||||
internalID: -8878088185706026076
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
@ -148,7 +148,7 @@ TextureImporter:
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
SaveButton_0: 2079131731516339571
|
||||
pause_0: -8878088185706026076
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
Before Width: | Height: | Size: 10 KiB |
@ -1,156 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bcd6c4da7709ff9458a5784f7f807e30
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -2073137460773038770
|
||||
second: PauseIcon_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: PauseIcon_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 17
|
||||
y: 19
|
||||
width: 239
|
||||
height: 218
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: e455110a67cba33e0800000000000000
|
||||
internalID: -2073137460773038770
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
PauseIcon_0: -2073137460773038770
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -96,19 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
@ -147,8 +134,7 @@ TextureImporter:
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
RegularPlatform01_0: 3787390808643081465
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
@ -1,10 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b64c942662170e44b2f80d605a405f4
|
||||
guid: c51e366cbbc7cd534a9788dd491e8086
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -2073137460773038770
|
||||
second: PauseIcon_0
|
||||
213: 6208176927266180224
|
||||
second: Play_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
@ -113,13 +113,13 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: PauseIcon_0
|
||||
name: Play_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 17
|
||||
y: 19
|
||||
x: 7
|
||||
y: 7
|
||||
width: 239
|
||||
height: 218
|
||||
height: 238
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
@ -128,8 +128,8 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: e455110a67cba33e0800000000000000
|
||||
internalID: -2073137460773038770
|
||||
spriteID: 08c0a74e500e72650800000000000000
|
||||
internalID: 6208176927266180224
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
@ -148,7 +148,7 @@ TextureImporter:
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
PauseIcon_0: -2073137460773038770
|
||||
Play_0: 6208176927266180224
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
Before Width: | Height: | Size: 48 KiB |
@ -1,156 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 23d8ef624fc9e5f3fa3f695b9385f5cc
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -8770034739519435172
|
||||
second: PlayIcon_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: PlayIcon_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 26
|
||||
y: 27
|
||||
width: 206
|
||||
height: 199
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: c5ecb1bbed39a4680800000000000000
|
||||
internalID: -8770034739519435172
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
PlayIcon_0: -8770034739519435172
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -96,19 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
@ -147,8 +134,7 @@ TextureImporter:
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
CubePortalLabelled_0: -799402021850825835
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
@ -96,19 +96,6 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
@ -147,8 +134,7 @@ TextureImporter:
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
ShipPortalLabelled_0: -1834338360412052916
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
|
Before Width: | Height: | Size: 16 KiB |
@ -1,156 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 79b56765ff1452848bd947d19c642244
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -6564193165698205349
|
||||
second: Remove_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: Remove_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 512
|
||||
height: 512
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: b59f289281d47e4a0800000000000000
|
||||
internalID: -6564193165698205349
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
Remove_0: -6564193165698205349
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 8.9 KiB |
@ -1,155 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58314e7be35f3201e8f3d376508d5800
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -522367714226421056
|
||||
second: Save_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: Save_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 24
|
||||
y: 23
|
||||
width: 464
|
||||
height: 464
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 0c2c66fd45d20c8f0800000000000000
|
||||
internalID: -522367714226421056
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 1.5 MiB |
@ -1,156 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7941bec4ab82ba5f8a978cf1b4d91010
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 1404028623067837608
|
||||
second: Logo_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: Logo_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1024
|
||||
height: 1024
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 8a47074089c1c7310800000000000000
|
||||
internalID: 1404028623067837608
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
Logo_0: 1404028623067837608
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,136 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &4469289624494365187
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8964879669643113576}
|
||||
- component: {fileID: 5612594502755166219}
|
||||
- component: {fileID: 1469510466419132587}
|
||||
m_Layer: 0
|
||||
m_Name: Ground
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &8964879669643113576
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4469289624494365187}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -15.92, y: -5.7, z: 0}
|
||||
m_LocalScale: {x: 1, y: 0.8581, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &5612594502755166219
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4469289624494365187}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||
m_RayTracingAccelStructBuildFlags: 1
|
||||
m_SmallMeshCulling: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: -2257217325195158302, guid: a192a62ef32304b4182909c80a175f39, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 5.12, y: 5.12}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!61 &1469510466419132587
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4469289624494365187}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 5.12, y: 5.12}
|
||||
newSize: {x: 5.12, y: 5.12}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 5.12, y: 5.12}
|
||||
m_EdgeRadius: 0
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 052f6240a620828cea410bf389122be0
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -202,7 +202,7 @@ BoxCollider2D:
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: -0.0040085316, y: -0.35639262}
|
||||
m_Offset: {x: -0.0040085316, y: -0.985047}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0, y: 0}
|
||||
@ -212,7 +212,7 @@ BoxCollider2D:
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 5.1211915, y: 4.4239116}
|
||||
m_Size: {x: 5.1211915, y: 2.672097}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!1 &4179475610744468388
|
||||
GameObject:
|
||||
@ -280,7 +280,7 @@ BoxCollider2D:
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: 0.0038814545, y: 2.4709496}
|
||||
m_Offset: {x: -0.004009247, y: 1.7748187}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0, y: 0}
|
||||
@ -290,5 +290,5 @@ BoxCollider2D:
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 5.1474953, y: 0.20310307}
|
||||
m_Size: {x: 5.121194, y: 1.4569769}
|
||||
m_EdgeRadius: 0
|
||||
|
@ -122,7 +122,7 @@ BoxCollider2D:
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: 0.0058231354, y: 0.09898627}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
@ -132,5 +132,5 @@ BoxCollider2D:
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 0.97265434, y: 3.202761}
|
||||
m_Size: {x: 0.6, y: 1.06}
|
||||
m_EdgeRadius: 0
|
||||
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f762bc8c54d24bc38a9c08ae37e1861
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,23 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f783190ab25e24deb41c3810d8bd910
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 8
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,23 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a534a6e5c2588e8468f392da95b4d051
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 8
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,23 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 01bc19d23f018f986bec98d64fb0c51b
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 8
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bdddba7e4ac5baa4e833a5e67122d0d3
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 200c916866fde6f4bb0123b72f22771f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -849,7 +849,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: ef2acea012085a3bb9a981fc334afaec, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
sfxSource: {fileID: 1646124753}
|
||||
--- !u!114 &955286180
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1049,135 +1048,6 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!1 &1646124752
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1646124754}
|
||||
- component: {fileID: 1646124753}
|
||||
m_Layer: 0
|
||||
m_Name: Sound
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!82 &1646124753
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1646124752}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 0}
|
||||
m_Resource: {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 &1646124754
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1646124752}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 513.29504, y: 455.8944, z: -2.436951}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1185,4 +1055,3 @@ SceneRoots:
|
||||
- {fileID: 837005990}
|
||||
- {fileID: 1442014941}
|
||||
- {fileID: 162069549}
|
||||
- {fileID: 1646124754}
|
||||
|
@ -222,81 +222,63 @@ MonoBehaviour:
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!1 &99686832
|
||||
GameObject:
|
||||
--- !u!1001 &109370708
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 99686833}
|
||||
- component: {fileID: 99686835}
|
||||
- component: {fileID: 99686834}
|
||||
m_Layer: 5
|
||||
m_Name: Checkmark
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &99686833
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 99686832}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 295909703}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 36.9547, y: 33.6365}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &99686834
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 99686832}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &99686835
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 99686832}
|
||||
m_CullTransparentMesh: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1771296619209216840, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: BonusSlowSpeed
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -5.4423084
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -2.783749
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6543394447596783970, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: e9dda45aef9258745a40efb48437d584, type: 3}
|
||||
--- !u!1 &245275147
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -376,82 +358,6 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 245275147}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &295909702
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 295909703}
|
||||
- component: {fileID: 295909705}
|
||||
- component: {fileID: 295909704}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &295909703
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 295909702}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 99686833}
|
||||
m_Father: {fileID: 2145558729}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 49.9975, y: 40.9}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &295909704
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 295909702}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &295909705
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 295909702}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &487176671
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -528,67 +434,6 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 487176671}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1001 &496264820
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 3025146551836412649, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: BonusBoostSpeed
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3025146551836412649, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -2.88
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.99681437
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0.079757296
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7134261581051338486, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: -9.149
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 5d01d2d55c6c25541b0db90186e76c2b, type: 3}
|
||||
--- !u!1 &519420028
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -698,8 +543,6 @@ MonoBehaviour:
|
||||
playerObject: {fileID: 1267397455}
|
||||
normalMinYFollow: 2
|
||||
shipMinYFollow: 6
|
||||
smoothSpeed: 5
|
||||
isPlaying: 1
|
||||
--- !u!1 &521952199
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -5983,8 +5826,6 @@ RectTransform:
|
||||
- {fileID: 1269654000}
|
||||
- {fileID: 1464555240}
|
||||
- {fileID: 6776933}
|
||||
- {fileID: 2145558729}
|
||||
- {fileID: 2049642316}
|
||||
m_Father: {fileID: 1371294550}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
@ -6379,7 +6220,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: -2073137460773038770, guid: bcd6c4da7709ff9458a5784f7f807e30, type: 3}
|
||||
m_Sprite: {fileID: -8878088185706026076, guid: 4874b4932ea8df273aafe2c64ec3e05a, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
@ -6432,7 +6273,7 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1247869545
|
||||
--- !u!1 &1235900592
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -6440,127 +6281,132 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1247869547}
|
||||
- component: {fileID: 1247869546}
|
||||
- component: {fileID: 1235900594}
|
||||
- component: {fileID: 1235900593}
|
||||
- component: {fileID: 1235900595}
|
||||
m_Layer: 0
|
||||
m_Name: Sound
|
||||
m_Name: Ground
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!82 &1247869546
|
||||
AudioSource:
|
||||
--- !u!212 &1235900593
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1247869545}
|
||||
m_GameObject: {fileID: 1235900592}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 0}
|
||||
m_Resource: {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 &1247869547
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||
m_RayTracingAccelStructBuildFlags: 1
|
||||
m_SmallMeshCulling: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: -2257217325195158302, guid: a192a62ef32304b4182909c80a175f39, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 5.12, y: 5.12}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!4 &1235900594
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1247869545}
|
||||
m_GameObject: {fileID: 1235900592}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 8.485552, y: 2.2081068, z: -0.13737443}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalPosition: {x: 353.61, y: -5.69, z: 0}
|
||||
m_LocalScale: {x: 150, y: 0.8581, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!61 &1235900595
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1235900592}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 5.12, y: 5.12}
|
||||
newSize: {x: 5.12, y: 5.12}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 5.12, y: 5.12}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!1 &1267397455
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -6605,9 +6451,9 @@ Rigidbody2D:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 0
|
||||
m_CollisionDetection: 1
|
||||
m_Constraints: 4
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
--- !u!212 &1267397457
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -6691,8 +6537,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: ebe0bd74200510d4aa75c327a76499c6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
pauseMenu: {fileID: 892725783}
|
||||
sfxSource: {fileID: 1247869546}
|
||||
SpeedMultiplier: 1
|
||||
--- !u!61 &1267397460
|
||||
BoxCollider2D:
|
||||
@ -7314,7 +7158,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: -8770034739519435172, guid: 23d8ef624fc9e5f3fa3f695b9385f5cc, type: 3}
|
||||
m_Sprite: {fileID: 6208176927266180224, guid: c51e366cbbc7cd534a9788dd491e8086, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
@ -7604,9 +7448,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
levelsLoader: {fileID: 0}
|
||||
editMode: 0
|
||||
createMode: 0
|
||||
musicSource: {fileID: 1999482188}
|
||||
audioSource: {fileID: 1999482188}
|
||||
progressionText: {fileID: 245275149}
|
||||
--- !u!4 &1999482187
|
||||
Transform:
|
||||
@ -7755,206 +7597,15 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &2049642315
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2049642316}
|
||||
- component: {fileID: 2049642318}
|
||||
- component: {fileID: 2049642317}
|
||||
m_Layer: 0
|
||||
m_Name: AI
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2049642316
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2049642315}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -2.9565992}
|
||||
m_LocalScale: {x: 0.4166666, y: 0.4166666, z: 0.4166666}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 892725782}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -377, y: -274}
|
||||
m_SizeDelta: {x: 87.0508, y: 79.9371}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2049642317
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2049642315}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3}
|
||||
m_FontSize: 56
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 0
|
||||
m_MaxSize: 56
|
||||
m_Alignment: 0
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: AI
|
||||
--- !u!222 &2049642318
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2049642315}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &2145558728
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2145558729}
|
||||
- component: {fileID: 2145558730}
|
||||
- component: {fileID: 2145558731}
|
||||
m_Layer: 5
|
||||
m_Name: CheckboxAI
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2145558729
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2145558728}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 295909703}
|
||||
m_Father: {fileID: 892725782}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -424.55, y: -273.6}
|
||||
m_SizeDelta: {x: 60.1819, y: 50.9705}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2145558730
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2145558728}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, 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: 295909704}
|
||||
toggleTransition: 1
|
||||
graphic: {fileID: 99686834}
|
||||
m_Group: {fileID: 0}
|
||||
onValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 2145558731}
|
||||
m_TargetAssemblyTypeName: AI, Assembly-CSharp
|
||||
m_MethodName: OnAiChange
|
||||
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
|
||||
m_IsOn: 0
|
||||
--- !u!114 &2145558731
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2145558728}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b63079a9773c036389c5b87c12e728c3, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
AIToggle: {fileID: 0}
|
||||
player: {fileID: 1267397459}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
m_Roots:
|
||||
- {fileID: 519420032}
|
||||
- {fileID: 1267397458}
|
||||
- {fileID: 1235900594}
|
||||
- {fileID: 1999482187}
|
||||
- {fileID: 1371294550}
|
||||
- {fileID: 521952202}
|
||||
- {fileID: 555497623}
|
||||
- {fileID: 496264820}
|
||||
- {fileID: 1247869547}
|
||||
- {fileID: 109370708}
|
||||
|
@ -438,139 +438,6 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &334972165
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 334972166}
|
||||
- component: {fileID: 334972167}
|
||||
m_Layer: 5
|
||||
m_Name: Sound
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &334972166
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 334972165}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1153106989}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!82 &334972167
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 334972165}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 0}
|
||||
m_Resource: {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!1 &633505916
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -979,7 +846,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 2c53cba3260b30d02b79e69a3198546c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
sfxSource: {fileID: 334972167}
|
||||
levelsLoader: {fileID: 0}
|
||||
--- !u!1 &1099679056
|
||||
GameObject:
|
||||
@ -1126,7 +992,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: ef2acea012085a3bb9a981fc334afaec, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
sfxSource: {fileID: 334972167}
|
||||
--- !u!1 &1153106988
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1166,7 +1031,6 @@ RectTransform:
|
||||
- {fileID: 760653959}
|
||||
- {fileID: 92159575}
|
||||
- {fileID: 1571276505}
|
||||
- {fileID: 334972166}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@ -1382,7 +1246,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: c34ef065650ba0802be580828cc0d474, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
sfxSource: {fileID: 334972167}
|
||||
levelsLoader: {fileID: 0}
|
||||
--- !u!1 &1571276504
|
||||
GameObject:
|
||||
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fabb6c6015f46541a57baf21011fa51
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,19 +0,0 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class AI : MonoBehaviour
|
||||
{
|
||||
public Toggle AIToggle;
|
||||
public Player player;
|
||||
|
||||
public void OnAiChange()
|
||||
{
|
||||
player.IsAI = AIToggle.isOn;
|
||||
}
|
||||
|
||||
public void Awake()
|
||||
{
|
||||
AIToggle = GetComponent<Toggle>();
|
||||
AIToggle.isOn = player.IsAI;
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b63079a9773c036389c5b87c12e728c3
|
@ -1,20 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class CameraController : MonoBehaviour
|
||||
{
|
||||
public float moveSpeed = 10f;
|
||||
|
||||
void Update()
|
||||
{
|
||||
float horizontalInput = Input.GetAxisRaw("Horizontal"); // ← → ou A D
|
||||
float verticalInput = Input.GetAxisRaw("Vertical"); // ↑ ↓ ou W S
|
||||
|
||||
Vector3 movement = new Vector3(
|
||||
horizontalInput * moveSpeed * Time.deltaTime,
|
||||
verticalInput * moveSpeed * Time.deltaTime,
|
||||
0f
|
||||
);
|
||||
|
||||
Camera.main.transform.position += movement;
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74af3e3f2c02bde43b24c2f56589d071
|
@ -5,6 +5,4 @@ public interface IGameMode
|
||||
void Update(Player player);
|
||||
void OnCollisionEnter(Player player, Collision2D collision);
|
||||
void OnCollisionExit(Player player, Collision2D collision);
|
||||
|
||||
void Jump(Player player);
|
||||
}
|
||||
|
@ -1,64 +1,40 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class NormalGameMode : IGameMode
|
||||
{
|
||||
private const float HorizontalSpeed = 8.6f;
|
||||
private const float JumpForce = 26.6581f;
|
||||
private const KeyCode JumpKey = KeyCode.Space;
|
||||
private bool isRotating = false;
|
||||
private float targetRotationAngle = 0f;
|
||||
private readonly float rotationSpeed = 360f;
|
||||
|
||||
public void Update(Player player)
|
||||
{
|
||||
player.RigidBody.linearVelocity = new Vector2(HorizontalSpeed * player.SpeedMultiplier, player.RigidBody.linearVelocity.y);
|
||||
|
||||
if (player.IsColliding && Input.GetKey(JumpKey) && !isRotating)
|
||||
if (player.HasStarted && player.IsColliding && Input.GetKey(JumpKey) && player.CanJump)
|
||||
{
|
||||
Jump(player);
|
||||
}
|
||||
|
||||
if (isRotating)
|
||||
{
|
||||
PerformRotation(player);
|
||||
}
|
||||
|
||||
if (!IsJumping(player))
|
||||
{
|
||||
AlignRotation(player);
|
||||
player.Particle.gameObject.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.Particle.gameObject.SetActive(false);
|
||||
player.Transform.Rotate(Vector3.back * 360 * Time.deltaTime);
|
||||
}
|
||||
|
||||
UpdateParticlePositionAndRotation(player);
|
||||
}
|
||||
|
||||
public void Jump(Player player)
|
||||
private void Jump(Player player)
|
||||
{
|
||||
player.RigidBody.linearVelocity = new Vector2(player.RigidBody.linearVelocity.x, 0);
|
||||
player.RigidBody.AddForce(Vector2.up * JumpForce, ForceMode2D.Impulse);
|
||||
if (player.LevelsLoader != null)
|
||||
{
|
||||
player.LevelsLoader.IncreaseTotalJumps();
|
||||
}
|
||||
isRotating = true;
|
||||
targetRotationAngle = player.transform.eulerAngles.z - 90f;
|
||||
}
|
||||
|
||||
private void PerformRotation(Player player)
|
||||
{
|
||||
float rotationThisFrame = rotationSpeed * Time.deltaTime;
|
||||
float newRotation = Mathf.MoveTowardsAngle(player.transform.eulerAngles.z, targetRotationAngle, rotationThisFrame);
|
||||
player.transform.rotation = Quaternion.Euler(0, 0, newRotation);
|
||||
|
||||
if (Mathf.Abs(Mathf.DeltaAngle(newRotation, targetRotationAngle)) < 0.1f)
|
||||
{
|
||||
player.transform.rotation = Quaternion.Euler(0, 0, targetRotationAngle);
|
||||
isRotating = false;
|
||||
AlignRotation(player);
|
||||
}
|
||||
player.LevelsLoader.IncreaseTotalJumps();
|
||||
}
|
||||
|
||||
private bool IsJumping(Player player)
|
||||
@ -68,21 +44,31 @@ public class NormalGameMode : IGameMode
|
||||
|
||||
private void AlignRotation(Player player)
|
||||
{
|
||||
Vector3 rotation = player.transform.eulerAngles;
|
||||
Vector3 rotation = player.Transform.rotation.eulerAngles;
|
||||
rotation.z = Mathf.Round(rotation.z / 90) * 90;
|
||||
player.transform.rotation = Quaternion.Euler(rotation);
|
||||
player.Transform.rotation = Quaternion.Euler(rotation);
|
||||
}
|
||||
|
||||
private void UpdateParticlePositionAndRotation(Player player)
|
||||
{
|
||||
player.Particle.transform.position =
|
||||
player.transform.position + new Vector3(-0.19f, -0.64f, -10);
|
||||
player.Particle.transform.position = player.Transform.position + new Vector3(-0.19f, -0.64f, -10);
|
||||
player.Particle.transform.rotation = Quaternion.Euler(0, 0, 150.464f);
|
||||
}
|
||||
|
||||
public void OnCollisionEnter(Player player, Collision2D collision)
|
||||
{
|
||||
player.IsColliding = true;
|
||||
player.CanJump = true;
|
||||
|
||||
if (collision.gameObject.CompareTag("Kill"))
|
||||
{
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
||||
}
|
||||
|
||||
if (collision.gameObject.CompareTag("Win"))
|
||||
{
|
||||
SceneManager.LoadScene("SelectLevelScene");
|
||||
}
|
||||
}
|
||||
|
||||
public void OnCollisionExit(Player player, Collision2D collision)
|
||||
|
@ -1,4 +1,3 @@
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
@ -17,7 +16,7 @@ public class ShipGameMode : IGameMode
|
||||
|
||||
bool jumpPressed = Input.GetKey(JumpKey);
|
||||
|
||||
if (jumpPressed)
|
||||
if (player.HasStarted && jumpPressed)
|
||||
{
|
||||
Jump(player);
|
||||
|
||||
@ -50,24 +49,30 @@ public class ShipGameMode : IGameMode
|
||||
{
|
||||
float angle = player.Transform.rotation.eulerAngles.z;
|
||||
if (angle > 180f)
|
||||
{
|
||||
angle -= 360f;
|
||||
}
|
||||
return angle;
|
||||
}
|
||||
|
||||
public void Jump(Player player)
|
||||
private void Jump(Player player)
|
||||
{
|
||||
player.RigidBody.linearVelocity = new Vector2(player.RigidBody.linearVelocity.x, 0);
|
||||
player.RigidBody.AddForce(Vector2.up * JumpForce, ForceMode2D.Impulse);
|
||||
if (player.LevelsLoader != null)
|
||||
{
|
||||
player.LevelsLoader.IncreaseTotalJumps();
|
||||
}
|
||||
player.LevelsLoader.IncreaseTotalJumps();
|
||||
}
|
||||
|
||||
public void OnCollisionEnter(Player player, Collision2D collision)
|
||||
{
|
||||
if (collision.gameObject.CompareTag("Kill"))
|
||||
{
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
||||
return;
|
||||
}
|
||||
if (collision.gameObject.CompareTag("Win"))
|
||||
{
|
||||
SceneManager.LoadScene("HomeScene");
|
||||
return;
|
||||
}
|
||||
|
||||
float currentAngle = GetCurrentZAngle(player);
|
||||
float shortestAngle = Mathf.DeltaAngle(currentAngle, 0);
|
||||
player.Transform.rotation = Quaternion.RotateTowards(player.Transform.rotation, Quaternion.Euler(0, 0, 0), Mathf.Abs(shortestAngle));
|
||||
|
@ -1,151 +0,0 @@
|
||||
using UnityEngine;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using SimpleFileBrowser;
|
||||
using TMPro;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
[RequireComponent(typeof(LevelEditor))]
|
||||
public class JSONExporter : MonoBehaviour
|
||||
{
|
||||
public TMP_Text statusText;
|
||||
private LevelEditor editor;
|
||||
private string levelsFolder;
|
||||
private string assetFolderPath;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
editor = GetComponent<LevelEditor>();
|
||||
levelsFolder = Path.Combine(Application.dataPath, "Resources/Levels");
|
||||
if (!Directory.Exists(levelsFolder))
|
||||
Directory.CreateDirectory(levelsFolder);
|
||||
|
||||
assetFolderPath = "Assets/Resources/Levels";
|
||||
|
||||
if (statusText == null)
|
||||
{
|
||||
var statusObj = GameObject.Find("StatusText");
|
||||
if (statusObj != null)
|
||||
statusText = statusObj.GetComponent<TMP_Text>();
|
||||
}
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
SetStatus("Ready to export...", Color.white);
|
||||
}
|
||||
|
||||
public void ExportJSON()
|
||||
{
|
||||
SetStatus("Exporting...", Color.yellow);
|
||||
StartCoroutine(ShowSaveDialog());
|
||||
}
|
||||
|
||||
private IEnumerator ShowSaveDialog()
|
||||
{
|
||||
yield return FileBrowser.WaitForSaveDialog(
|
||||
FileBrowser.PickMode.Files,
|
||||
false,
|
||||
levelsFolder,
|
||||
"NewLevel.json",
|
||||
"Save Level JSON",
|
||||
"Save"
|
||||
);
|
||||
|
||||
if (!FileBrowser.Success)
|
||||
{
|
||||
SetStatus("Save canceled.", Color.red);
|
||||
yield break;
|
||||
}
|
||||
|
||||
string chosenPath = FileBrowser.Result[0];
|
||||
string fileName = Path.GetFileNameWithoutExtension(chosenPath);
|
||||
string destPath = Path.Combine(levelsFolder, fileName + ".json");
|
||||
|
||||
var elements = new List<SerializableElement>();
|
||||
var allCols = Object.FindObjectsByType<Collider2D>(FindObjectsSortMode.None);
|
||||
foreach (var col in allCols)
|
||||
{
|
||||
var go = col.gameObject;
|
||||
if (!go.name.Contains("(Clone)") || go.name.ToLower().Contains("ground"))
|
||||
continue;
|
||||
|
||||
Vector3 scale = go.transform.localScale;
|
||||
Vector3 pos = go.transform.position;
|
||||
|
||||
elements.Add(new SerializableElement
|
||||
{
|
||||
type = go.name.Replace("(Clone)", ""),
|
||||
x = Mathf.Round(pos.x * 100f) / 100f,
|
||||
y = Mathf.Round(pos.y * 100f) / 100f,
|
||||
scaleX = Mathf.Round(scale.x * 100f) / 100f,
|
||||
scaleY = Mathf.Round(scale.y * 100f) / 100f
|
||||
});
|
||||
}
|
||||
|
||||
if (elements.Count == 0)
|
||||
{
|
||||
SetStatus("No elements to export.", Color.red);
|
||||
yield break;
|
||||
}
|
||||
|
||||
LevelData data = new LevelData
|
||||
{
|
||||
name = fileName,
|
||||
musicName = "",
|
||||
order = 0,
|
||||
elements = elements.ToArray()
|
||||
};
|
||||
string json = JsonUtility.ToJson(data, prettyPrint: true);
|
||||
|
||||
try
|
||||
{
|
||||
File.WriteAllText(destPath, json);
|
||||
SetStatus("Export successful: " + fileName + ".json", Color.green);
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Debug.LogError("Export error: " + e);
|
||||
SetStatus("Export error. See console.", Color.red);
|
||||
yield break;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
string assetPath = Path.Combine(assetFolderPath, fileName + ".json");
|
||||
AssetDatabase.ImportAsset(assetPath, ImportAssetOptions.ForceUpdate);
|
||||
#endif
|
||||
|
||||
var loader = FindObjectOfType<LevelsLoader>();
|
||||
loader?.RefreshLevels();
|
||||
}
|
||||
|
||||
private void SetStatus(string message, Color color)
|
||||
{
|
||||
if (statusText == null) return;
|
||||
statusText.text = message;
|
||||
statusText.color = color;
|
||||
statusText.gameObject.SetActive(false);
|
||||
statusText.gameObject.SetActive(true);
|
||||
Canvas.ForceUpdateCanvases();
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
private class SerializableElement
|
||||
{
|
||||
public string type;
|
||||
public float x, y, scaleX, scaleY;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
private class LevelData
|
||||
{
|
||||
public string name;
|
||||
public string musicName;
|
||||
public int order;
|
||||
public SerializableElement[] elements;
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3227fe18f4441647bdd19d3131efa02
|
@ -17,6 +17,18 @@ public class JSONImporter : MonoBehaviour
|
||||
if (statusObj != null)
|
||||
{
|
||||
statusText = statusObj.GetComponent<TMP_Text>();
|
||||
if (statusText != null)
|
||||
{
|
||||
Debug.Log("✅ StatusText found and assigned automatically!");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("⚠️ 'StatusText' was found but does not have a TMP_Text component!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("⚠️ No GameObject named 'StatusText' found in the scene. Please create a TextMeshPro element and name it 'StatusText'.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -28,10 +40,15 @@ public class JSONImporter : MonoBehaviour
|
||||
statusText.text = "Ready to import...";
|
||||
statusText.color = Color.white;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("statusText is not assigned!");
|
||||
}
|
||||
}
|
||||
|
||||
public void ImportJSON()
|
||||
{
|
||||
Debug.Log("Button clicked, starting import...");
|
||||
if (statusText != null)
|
||||
{
|
||||
statusText.text = "Importing...";
|
||||
@ -63,7 +80,10 @@ public class JSONImporter : MonoBehaviour
|
||||
File.Copy(sourcePath, destinationPath, true);
|
||||
success = true;
|
||||
}
|
||||
catch { }
|
||||
catch (IOException e)
|
||||
{
|
||||
Debug.LogError("Error copying file: " + e.Message);
|
||||
}
|
||||
|
||||
if (success)
|
||||
{
|
||||
@ -100,5 +120,9 @@ public class JSONImporter : MonoBehaviour
|
||||
statusText.gameObject.SetActive(true);
|
||||
Canvas.ForceUpdateCanvases();
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("statusText is NULL!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,153 +0,0 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using SimpleFileBrowser;
|
||||
using TMPro;
|
||||
|
||||
[System.Serializable]
|
||||
public class BlockData
|
||||
{
|
||||
public string prefabName;
|
||||
public Vector3 position;
|
||||
public float rotationZ;
|
||||
public Vector3 scale;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class LevelData
|
||||
{
|
||||
public string levelName;
|
||||
public List<BlockData> blocks = new List<BlockData>();
|
||||
}
|
||||
|
||||
public class JSONLevelEditor : MonoBehaviour
|
||||
{
|
||||
[Header("UI")]
|
||||
public TMP_Dropdown levelDropdown;
|
||||
public Button loadButton;
|
||||
public Button saveButton;
|
||||
public TMP_Text statusText;
|
||||
|
||||
[Header("Editor")]
|
||||
public Transform editRoot; // où on instancie les blocs
|
||||
public List<GameObject> blockPrefabs; // à remplir dans l’inspecteur (mêmes noms que dans JSON)
|
||||
|
||||
private LevelData currentLevel;
|
||||
private string currentJsonPath;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
// Remplir la dropdown avec les JSON disponibles dans Resources/Levels
|
||||
var assets = Resources.LoadAll<TextAsset>("Levels");
|
||||
levelDropdown.options.Clear();
|
||||
foreach (var txt in assets)
|
||||
levelDropdown.options.Add(new TMP_Dropdown.OptionData(txt.name));
|
||||
levelDropdown.RefreshShownValue();
|
||||
|
||||
loadButton.onClick.AddListener(OnLoadClicked);
|
||||
saveButton.onClick.AddListener(OnSaveClicked);
|
||||
UpdateStatus("Prêt.", Color.white);
|
||||
}
|
||||
|
||||
private void OnLoadClicked()
|
||||
{
|
||||
string lvlName = levelDropdown.options[levelDropdown.value].text;
|
||||
TextAsset json = Resources.Load<TextAsset>($"Levels/{lvlName}");
|
||||
if (json == null)
|
||||
{
|
||||
UpdateStatus($"Niveau '{lvlName}' introuvable.", Color.red);
|
||||
return;
|
||||
}
|
||||
|
||||
currentJsonPath = Path.Combine(Application.dataPath, "Resources/Levels", lvlName + ".json");
|
||||
currentLevel = JsonUtility.FromJson<LevelData>(json.text);
|
||||
if (currentLevel == null)
|
||||
{
|
||||
UpdateStatus("Impossible de parser le JSON.", Color.red);
|
||||
return;
|
||||
}
|
||||
|
||||
ClearEditRoot();
|
||||
foreach (var bd in currentLevel.blocks)
|
||||
{
|
||||
var prefab = blockPrefabs.Find(p => p.name == bd.prefabName);
|
||||
if (prefab == null) continue;
|
||||
var go = Instantiate(prefab, editRoot);
|
||||
go.transform.localPosition = bd.position;
|
||||
go.transform.localEulerAngles = new Vector3(0, 0, bd.rotationZ);
|
||||
go.transform.localScale = bd.scale;
|
||||
// vous pouvez ajouter un script pour manipuler ce 'go' dans l’éditeur
|
||||
}
|
||||
|
||||
UpdateStatus($"Niveau '{lvlName}' chargé.", Color.green);
|
||||
}
|
||||
|
||||
private void OnSaveClicked()
|
||||
{
|
||||
if (currentLevel == null)
|
||||
{
|
||||
UpdateStatus("Aucun niveau chargé.", Color.red);
|
||||
return;
|
||||
}
|
||||
|
||||
// Reconstruire le LevelData depuis les enfants de editRoot
|
||||
currentLevel.blocks.Clear();
|
||||
foreach (Transform child in editRoot)
|
||||
{
|
||||
var bd = new BlockData
|
||||
{
|
||||
prefabName = child.name.Replace("(Clone)", ""),
|
||||
position = child.localPosition,
|
||||
rotationZ = child.localEulerAngles.z,
|
||||
scale = child.localScale
|
||||
};
|
||||
currentLevel.blocks.Add(bd);
|
||||
}
|
||||
|
||||
// Demande path de sauvegarde
|
||||
StartCoroutine(DoSaveDialog());
|
||||
}
|
||||
|
||||
private IEnumerator DoSaveDialog()
|
||||
{
|
||||
yield return FileBrowser.WaitForSaveDialog(
|
||||
FileBrowser.PickMode.Files, false, null, "json",
|
||||
"Save JSON", "Save");
|
||||
|
||||
if (!FileBrowser.Success)
|
||||
{
|
||||
UpdateStatus("Sauvegarde annulée.", Color.red);
|
||||
yield break;
|
||||
}
|
||||
|
||||
string dest = FileBrowser.Result[0];
|
||||
if (!dest.EndsWith(".json")) dest += ".json";
|
||||
|
||||
string jsonText = JsonUtility.ToJson(currentLevel, true);
|
||||
try
|
||||
{
|
||||
File.WriteAllText(dest, jsonText);
|
||||
UpdateStatus($"Sauvegardé : {dest}", Color.green);
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Debug.LogError(e);
|
||||
UpdateStatus("Erreur lors de la sauvegarde.", Color.red);
|
||||
}
|
||||
}
|
||||
|
||||
private void ClearEditRoot()
|
||||
{
|
||||
for (int i = editRoot.childCount - 1; i >= 0; i--)
|
||||
DestroyImmediate(editRoot.GetChild(i).gameObject);
|
||||
}
|
||||
|
||||
private void UpdateStatus(string msg, Color col)
|
||||
{
|
||||
if (statusText == null) return;
|
||||
statusText.text = msg;
|
||||
statusText.color = col;
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4a995a69086a0184d830aa300b3c2843
|
@ -1,14 +1,14 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.EventSystems;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class LevelEditor : MonoBehaviour
|
||||
{
|
||||
[Header("Placement")]
|
||||
public Transform mapParent;
|
||||
private GameObject currentBlock;
|
||||
private bool isPlacingBlock = false;
|
||||
private Vector3 currentScale = Vector3.one;
|
||||
private Vector3 currentScale = new Vector3(1f, 1f, 1);
|
||||
private float scaleStep = 0.1f;
|
||||
|
||||
[Header("UI")]
|
||||
@ -28,566 +28,229 @@ public class LevelEditor : MonoBehaviour
|
||||
|
||||
private enum ResizeAxis { None, Horizontal, Vertical }
|
||||
private ResizeAxis currentResizeAxis = ResizeAxis.None;
|
||||
private Transform persistentBlockContainer;
|
||||
|
||||
void Start()
|
||||
{
|
||||
persistentBlockContainer = new GameObject("PlacedBlocks").transform;
|
||||
DontDestroyOnLoad(persistentBlockContainer.gameObject);
|
||||
LoadPrefabs();
|
||||
GenerateButtons();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (IsPointerOverUI()) return;
|
||||
|
||||
if (isPlacingBlock && currentBlock != null)
|
||||
HandleBlockPlacement();
|
||||
else
|
||||
HandleBlockSelection();
|
||||
|
||||
HandleBlockResizing();
|
||||
HandleBlockDeletion();
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
ClearEditor();
|
||||
}
|
||||
#region UI
|
||||
|
||||
void LoadPrefabs()
|
||||
{
|
||||
var all = Resources.LoadAll<GameObject>("Prefabs");
|
||||
blockPrefabs.Clear();
|
||||
foreach (var prefab in all)
|
||||
{
|
||||
var name = prefab.name.ToLower();
|
||||
if (name == "ground" || name == "winnerwall") continue;
|
||||
blockPrefabs.Add(prefab);
|
||||
}
|
||||
blockPrefabs.AddRange(Resources.LoadAll<GameObject>("Prefabs"));
|
||||
}
|
||||
|
||||
void GenerateButtons()
|
||||
{
|
||||
ClearCurrentButtons();
|
||||
if (blockGroupContainer == null || buttonPrefabTemplate == null)
|
||||
|
||||
Transform container = blockGroupContainer;
|
||||
|
||||
if (container == null || buttonPrefabTemplate == null)
|
||||
{
|
||||
Debug.LogError("UI Container ou prefab manquant.");
|
||||
Debug.LogError("UI Container ou prefab de bouton manquant.");
|
||||
return;
|
||||
}
|
||||
|
||||
int start = currentPage * buttonsPerPage;
|
||||
int end = Mathf.Min(start + buttonsPerPage, blockPrefabs.Count);
|
||||
|
||||
for (int i = start; i < end; i++)
|
||||
{
|
||||
var btn = Instantiate(buttonPrefabTemplate, blockGroupContainer);
|
||||
btn.SetActive(true);
|
||||
SetupButtonVisual(btn.transform, blockPrefabs[i], i - start);
|
||||
var prefab = blockPrefabs[i];
|
||||
btn.GetComponent<Button>().onClick.AddListener(() => SelectPrefab(prefab));
|
||||
currentButtons.Add(btn);
|
||||
}
|
||||
}
|
||||
GameObject button = Instantiate(buttonPrefabTemplate, container);
|
||||
button.SetActive(true);
|
||||
|
||||
void SetupButtonVisual(Transform t, GameObject prefab, int idx)
|
||||
{
|
||||
var canvas = t.Find("Canvas");
|
||||
var bg = canvas?.Find("BlankSquare");
|
||||
var icon = canvas?.Find("PrefabIcon");
|
||||
if (bg == null || icon == null) { Destroy(t.gameObject); return; }
|
||||
float xOff = -375f + idx * 125f;
|
||||
var bgRt = bg.GetComponent<RectTransform>();
|
||||
var icRt = icon.GetComponent<RectTransform>();
|
||||
bgRt.anchoredPosition = new Vector2(xOff, bgRt.anchoredPosition.y);
|
||||
icRt.anchoredPosition = new Vector2(xOff, icRt.anchoredPosition.y);
|
||||
bg.GetComponent<Image>().sprite = Resources.Load<Sprite>("InGame/ButtonSkin/BlankSquare");
|
||||
icon.GetComponent<Image>().sprite = prefab.GetComponent<SpriteRenderer>()?.sprite;
|
||||
icRt.sizeDelta = prefab.name.ToLower().Contains("small")
|
||||
? new Vector2(50, 25)
|
||||
: new Vector2(50, 50);
|
||||
Transform canvas = button.transform.Find("Canvas");
|
||||
Transform bg = canvas?.Find("BlankSquare");
|
||||
Transform icon = canvas?.Find("PrefabIcon");
|
||||
|
||||
if (bg == null || icon == null)
|
||||
{
|
||||
Destroy(button);
|
||||
continue;
|
||||
}
|
||||
|
||||
float xOffset = -375f + (i - start) * 125f;
|
||||
bg.GetComponent<RectTransform>().anchoredPosition = new Vector2(xOffset, bg.GetComponent<RectTransform>().anchoredPosition.y);
|
||||
icon.GetComponent<RectTransform>().anchoredPosition = new Vector2(xOffset, icon.GetComponent<RectTransform>().anchoredPosition.y);
|
||||
|
||||
Image bgImage = bg.GetComponent<Image>();
|
||||
Image iconImage = icon.GetComponent<Image>();
|
||||
|
||||
bgImage.sprite = Resources.Load<Sprite>("InGame/ButtonSkin/BlankSquare");
|
||||
iconImage.sprite = blockPrefabs[i].GetComponent<SpriteRenderer>()?.sprite;
|
||||
|
||||
string prefabName = blockPrefabs[i].name.ToLower();
|
||||
if (prefabName.Contains("smallspike") || prefabName.Contains("smallobstacle"))
|
||||
icon.GetComponent<RectTransform>().sizeDelta = new Vector2(50, 25);
|
||||
else
|
||||
icon.GetComponent<RectTransform>().sizeDelta = new Vector2(50, 50);
|
||||
|
||||
GameObject prefab = blockPrefabs[i];
|
||||
button.GetComponent<Button>().onClick.AddListener(() => SelectPrefab(prefab));
|
||||
currentButtons.Add(button);
|
||||
}
|
||||
}
|
||||
|
||||
void ClearCurrentButtons()
|
||||
{
|
||||
foreach (var b in currentButtons) Destroy(b);
|
||||
foreach (var button in currentButtons)
|
||||
Destroy(button);
|
||||
|
||||
currentButtons.Clear();
|
||||
}
|
||||
|
||||
public void NextPage()
|
||||
{
|
||||
int max = Mathf.CeilToInt(blockPrefabs.Count / (float)buttonsPerPage);
|
||||
if (currentPage < max - 1) { currentPage++; GenerateButtons(); }
|
||||
int maxPage = 3;
|
||||
Debug.Log(currentPage);
|
||||
if (currentPage < maxPage - 1)
|
||||
{
|
||||
currentPage++;
|
||||
GenerateButtons();
|
||||
}
|
||||
}
|
||||
|
||||
public void PreviousPage()
|
||||
{
|
||||
if (currentPage > 0) { currentPage--; GenerateButtons(); }
|
||||
Debug.Log(currentPage);
|
||||
if (currentPage > 0)
|
||||
{
|
||||
currentPage--;
|
||||
GenerateButtons();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Placement
|
||||
|
||||
void SelectPrefab(GameObject prefab)
|
||||
{
|
||||
if (isPlacingBlock) return;
|
||||
currentScale = DetermineScaleFromName(prefab.name);
|
||||
|
||||
string name = prefab.name.ToLower();
|
||||
|
||||
if (name.Contains("portal"))
|
||||
currentScale = new Vector3(0.5f, 0.5f, 1);
|
||||
else if (name.Contains("small"))
|
||||
currentScale = new Vector3(0.15f, 0.07f, 1);
|
||||
else if (name.Contains("spike"))
|
||||
currentScale = new Vector3(0.15f, 0.15f, 1);
|
||||
else if (name.Contains("block"))
|
||||
currentScale = new Vector3(0.2f, 0.2f, 1);
|
||||
else if (name.Contains("bonus"))
|
||||
currentScale = new Vector3(0.3f, 0.3f, 1);
|
||||
else
|
||||
currentScale = new Vector3(1f, 1f, 1);
|
||||
|
||||
InstantiateAndPrepare(prefab, currentScale);
|
||||
}
|
||||
|
||||
Vector3 DetermineScaleFromName(string name)
|
||||
void Update()
|
||||
{
|
||||
name = name.ToLower();
|
||||
if (name.Contains("portal")) return new Vector3(0.5f, 0.5f, 1);
|
||||
if (name.Contains("small")) return new Vector3(0.15f, 0.07f, 1);
|
||||
if (name.Contains("spike")) return new Vector3(0.15f, 0.15f, 1);
|
||||
if (name.Contains("block")) return new Vector3(0.2f, 0.2f, 1);
|
||||
if (name.Contains("bonus")) return new Vector3(0.3f, 0.3f, 1);
|
||||
return Vector3.one;
|
||||
}
|
||||
|
||||
void HandleBlockPlacement()
|
||||
{
|
||||
Vector2 m = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
currentBlock.transform.position = new Vector3(Mathf.Round(m.x), Mathf.Round(m.y), -1);
|
||||
if (Input.GetKeyDown(KeyCode.R)) HandleBlockRotation();
|
||||
if (!currentBlock.name.ToLower().Contains("portal"))
|
||||
if (isPlacingBlock && currentBlock != null)
|
||||
{
|
||||
float s = Input.GetAxis("Mouse ScrollWheel");
|
||||
if (s != 0)
|
||||
Vector2 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
currentBlock.transform.position = new Vector3(Mathf.Round(mousePos.x), Mathf.Round(mousePos.y), -1);
|
||||
|
||||
if (!currentBlock.name.ToLower().Contains("portal"))
|
||||
{
|
||||
float ns = Mathf.Max(0.1f, currentScale.x + s * scaleStep);
|
||||
currentScale = Vector3.one * ns;
|
||||
currentBlock.transform.localScale = currentScale;
|
||||
float scroll = Input.GetAxis("Mouse ScrollWheel");
|
||||
if (scroll != 0)
|
||||
{
|
||||
float newScale = Mathf.Max(0.1f, currentScale.x + scroll * scaleStep);
|
||||
currentScale = new Vector3(newScale, newScale, 1);
|
||||
currentBlock.transform.localScale = currentScale;
|
||||
}
|
||||
}
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Collider2D[] overlaps = Physics2D.OverlapBoxAll(
|
||||
currentBlock.transform.position,
|
||||
currentBlock.GetComponent<Collider2D>().bounds.size,
|
||||
0f
|
||||
);
|
||||
|
||||
if (overlaps.Length > 1)
|
||||
{
|
||||
Debug.Log("Placement annulé : un objet est déjà présent à cet endroit.");
|
||||
return;
|
||||
}
|
||||
|
||||
PlaceBlock();
|
||||
}
|
||||
}
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
|
||||
if (Input.GetMouseButtonDown(0) && !isPlacingBlock)
|
||||
{
|
||||
if (!IsPlacementValid())
|
||||
Vector2 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
Collider2D hit = Physics2D.OverlapPoint(mousePos);
|
||||
|
||||
if (hit != null)
|
||||
{
|
||||
Debug.Log("Placement invalide : collision.");
|
||||
return;
|
||||
resizingTarget = hit.gameObject;
|
||||
originalMousePos = mousePos;
|
||||
originalScale = resizingTarget.transform.localScale;
|
||||
|
||||
Vector2 localClick = mousePos - (Vector2)resizingTarget.transform.position;
|
||||
float ratio = resizingTarget.GetComponent<Collider2D>().bounds.size.x /
|
||||
resizingTarget.GetComponent<Collider2D>().bounds.size.y;
|
||||
|
||||
currentResizeAxis = Mathf.Abs(localClick.x) > Mathf.Abs(localClick.y * ratio)
|
||||
? ResizeAxis.Horizontal
|
||||
: ResizeAxis.Vertical;
|
||||
|
||||
isResizing = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (isResizing && resizingTarget != null)
|
||||
{
|
||||
Vector3 currentMousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
Vector3 delta = currentMousePos - originalMousePos;
|
||||
|
||||
if (currentResizeAxis == ResizeAxis.Horizontal)
|
||||
{
|
||||
float newScaleX = Mathf.Max(0.1f, originalScale.x + delta.x);
|
||||
resizingTarget.transform.localScale = new Vector3(newScaleX, originalScale.y, 1);
|
||||
}
|
||||
else if (currentResizeAxis == ResizeAxis.Vertical)
|
||||
{
|
||||
float newScaleY = Mathf.Max(0.1f, originalScale.y + delta.y);
|
||||
resizingTarget.transform.localScale = new Vector3(originalScale.x, newScaleY, 1);
|
||||
}
|
||||
|
||||
if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
isResizing = false;
|
||||
resizingTarget = null;
|
||||
currentResizeAxis = ResizeAxis.None;
|
||||
}
|
||||
PlaceBlock();
|
||||
}
|
||||
}
|
||||
|
||||
bool IsPlacementValid()
|
||||
{
|
||||
var col = currentBlock.GetComponent<Collider2D>();
|
||||
var hits = Physics2D.OverlapBoxAll(col.bounds.center, col.bounds.size, 0f);
|
||||
foreach (var h in hits)
|
||||
{
|
||||
if (h == col) continue;
|
||||
if (h.transform.IsChildOf(currentBlock.transform)) continue;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleBlockSelection()
|
||||
{
|
||||
if (!Input.GetMouseButtonDown(0)) return;
|
||||
Vector2 m = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
var hit = Physics2D.OverlapPoint(m);
|
||||
if (hit != null && !hit.CompareTag("Ground"))
|
||||
{
|
||||
var sel = hit.gameObject;
|
||||
if ((sel.name.Contains("ObstacleSafer") || sel.name.Contains("ObstacleKiller"))
|
||||
&& sel.transform.parent != null
|
||||
&& sel.transform.parent.name.Contains("ObstacleBlock"))
|
||||
sel = sel.transform.parent.gameObject;
|
||||
currentBlock = sel;
|
||||
isPlacingBlock = true;
|
||||
currentScale = currentBlock.transform.localScale;
|
||||
Debug.Log($"Sélection : {sel.name}");
|
||||
}
|
||||
}
|
||||
void PlaceBlock()
|
||||
{
|
||||
string name = currentBlock.name.ToLower();
|
||||
bool isSpikeType = name.Contains("spike") || name.Contains("smallspike") || name.Contains("killzone");
|
||||
|
||||
if (isSpikeType)
|
||||
{
|
||||
// 1) Bloquer si on perçoit un spike de même type dans la direction de snap
|
||||
if (IsBlockedBySameTypeInSnapDirection())
|
||||
{
|
||||
Debug.LogError("Impossible de poser un spike sur un autre spike !");
|
||||
Destroy(currentBlock);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 2) On snap dans la direction (down/left/up/right), et on détruit si aucun support
|
||||
if (!SnapSpikeByRotation())
|
||||
{
|
||||
Debug.LogError("Impossible de poser un spike dans le vide !");
|
||||
Destroy(currentBlock);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 3) On fait l’ajustement fin (si besoin)
|
||||
TrySnapToNearbyBlock();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// tous les autres blocs
|
||||
TrySnapToNearbyBlock();
|
||||
}
|
||||
|
||||
isPlacingBlock = false;
|
||||
currentBlock = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Vérifie qu’il n’y ait pas déjà un spike/smallspike/killzone
|
||||
/// juste devant le spike selon sa rotation.
|
||||
/// </summary>
|
||||
bool IsBlockedBySameTypeInSnapDirection()
|
||||
{
|
||||
var col = currentBlock.GetComponent<Collider2D>();
|
||||
var b = col.bounds;
|
||||
|
||||
// 1) Détermine direction de snap (0→down,1→left,2→up,3→right)
|
||||
int rot = (Mathf.RoundToInt(currentBlock.transform.eulerAngles.z / 90) % 4 + 4) % 4;
|
||||
Vector2 dir = rot switch
|
||||
{
|
||||
1 => Vector2.right,
|
||||
2 => Vector2.up,
|
||||
3 => Vector2.left,
|
||||
_ => Vector2.down
|
||||
};
|
||||
|
||||
// 2) Origine : on place la « boîte » juste en bordure du sprite
|
||||
float offset = 0.01f;
|
||||
Vector2 origin = rot switch
|
||||
{
|
||||
1 => new Vector2(b.min.x - offset, b.center.y), // gauche
|
||||
3 => new Vector2(b.max.x + offset, b.center.y), // droite
|
||||
2 => new Vector2(b.center.x, b.max.y + offset), // haut
|
||||
_ => new Vector2(b.center.x, b.min.y - offset) // bas
|
||||
};
|
||||
|
||||
// 3) On box‐cast exactement la taille du sprite pour 100 unités
|
||||
RaycastHit2D[] hits = Physics2D.BoxCastAll(
|
||||
origin,
|
||||
b.size,
|
||||
0f,
|
||||
dir,
|
||||
100f
|
||||
);
|
||||
|
||||
foreach (var h in hits)
|
||||
{
|
||||
if (h.collider == null || h.collider.gameObject == currentBlock) continue;
|
||||
if (h.collider.isTrigger) continue;
|
||||
|
||||
string me = currentBlock.name.ToLower();
|
||||
string other = h.collider.gameObject.name.ToLower();
|
||||
|
||||
bool meIsSpikeFamily = me.Contains("spike") || me.Contains("killzone");
|
||||
bool otherIsSpikeFamily = other.Contains("spike") || other.Contains("killzone");
|
||||
|
||||
if (meIsSpikeFamily && otherIsSpikeFamily)
|
||||
{
|
||||
// on bloque absolument tout chevauchement entre ces trois types
|
||||
return true;
|
||||
}
|
||||
|
||||
// si on tape autre chose (sol, block, bonus…), on arrête le scan
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SnapSpikeByRotation()
|
||||
{
|
||||
// Récupère bounds et demi-tailles
|
||||
var col = currentBlock.GetComponent<Collider2D>();
|
||||
var b = col.bounds;
|
||||
float hw = b.extents.x;
|
||||
float hh = b.extents.y;
|
||||
|
||||
// 1) Détermine la rotation en quarts de tour : 0→down, 1→left, 2→up, 3→right
|
||||
int rot = ((Mathf.RoundToInt(currentBlock.transform.eulerAngles.z / 90f) % 4) + 4) % 4;
|
||||
Vector2 dir;
|
||||
switch (rot)
|
||||
{
|
||||
case 1: dir = Vector2.right; break;
|
||||
case 2: dir = Vector2.up; break;
|
||||
case 3: dir = Vector2.left; break;
|
||||
default: dir = Vector2.down; break;
|
||||
}
|
||||
|
||||
// 2) Calcule 3 origines le long de la face « avant » du spike
|
||||
const float eps = 0.01f;
|
||||
List<Vector2> origins = new List<Vector2>();
|
||||
if (dir == Vector2.down || dir == Vector2.up)
|
||||
{
|
||||
// face inférieure ou supérieure → balaye l’axe X
|
||||
float y0 = (dir == Vector2.down) ? b.min.y - eps : b.max.y + eps;
|
||||
origins.Add(new Vector2(b.min.x + 0.1f * b.size.x, y0));
|
||||
origins.Add(new Vector2(b.center.x, y0));
|
||||
origins.Add(new Vector2(b.max.x - 0.1f * b.size.x, y0));
|
||||
}
|
||||
else
|
||||
{
|
||||
// face gauche ou droite → balaye l’axe Y
|
||||
float x0 = (dir == Vector2.left) ? b.min.x - eps : b.max.x + eps;
|
||||
origins.Add(new Vector2(x0, b.min.y + 0.1f * b.size.y));
|
||||
origins.Add(new Vector2(x0, b.center.y));
|
||||
origins.Add(new Vector2(x0, b.max.y - 0.1f * b.size.y));
|
||||
}
|
||||
|
||||
// 3) Pour chaque origine, on lance un RaycastAll et on garde le hit le plus proche
|
||||
float bestDist = float.PositiveInfinity;
|
||||
RaycastHit2D bestHit = default;
|
||||
foreach (var o in origins)
|
||||
{
|
||||
var hits = Physics2D.RaycastAll(o, dir, 100f);
|
||||
foreach (var h in hits)
|
||||
{
|
||||
if (h.collider == null || h.collider.gameObject == currentBlock) continue;
|
||||
if (h.collider.isTrigger) continue;
|
||||
if (h.distance < bestDist)
|
||||
{
|
||||
bestDist = h.distance;
|
||||
bestHit = h;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 4) Aucun support trouvé → échec
|
||||
if (bestHit.collider == null)
|
||||
return false;
|
||||
|
||||
// 5) Sinon, colle bord à bord
|
||||
Vector3 p = currentBlock.transform.position;
|
||||
if (dir == Vector2.down) p.y = bestHit.point.y + hh;
|
||||
else if (dir == Vector2.up) p.y = bestHit.point.y - hh;
|
||||
else if (dir == Vector2.left) p.x = bestHit.point.x + hw;
|
||||
else if (dir == Vector2.right) p.x = bestHit.point.x - hw;
|
||||
|
||||
currentBlock.transform.position = new Vector3(p.x, p.y, -1f);
|
||||
Debug.Log($"Spike snapé {dir} sur « {bestHit.collider.name} » à {currentBlock.transform.position}");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Resizing & Deletion
|
||||
|
||||
void HandleBlockResizing()
|
||||
{
|
||||
if (Input.GetMouseButtonDown(0) && Input.GetKey(KeyCode.LeftShift) && !isPlacingBlock)
|
||||
{
|
||||
Vector2 m = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
var hit = Physics2D.OverlapPoint(m);
|
||||
if (hit != null && !hit.CompareTag("Ground"))
|
||||
BeginResizing(hit.gameObject, m);
|
||||
}
|
||||
if (isResizing && resizingTarget != null)
|
||||
PerformResizing();
|
||||
}
|
||||
|
||||
void BeginResizing(GameObject tgt, Vector2 mPos)
|
||||
{
|
||||
resizingTarget = tgt;
|
||||
originalMousePos = mPos;
|
||||
originalScale = tgt.transform.localScale;
|
||||
Vector2 local = mPos - (Vector2)tgt.transform.position;
|
||||
float ratio = tgt.GetComponent<Collider2D>().bounds.size.x / tgt.GetComponent<Collider2D>().bounds.size.y;
|
||||
currentResizeAxis = Mathf.Abs(local.x) > Mathf.Abs(local.y * ratio)
|
||||
? ResizeAxis.Horizontal
|
||||
: ResizeAxis.Vertical;
|
||||
isResizing = true;
|
||||
Debug.Log($"Début redim {tgt.name} (axe {currentResizeAxis})");
|
||||
}
|
||||
|
||||
void PerformResizing()
|
||||
{
|
||||
Vector3 m = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
Vector3 delta = m - originalMousePos;
|
||||
Vector3 ns = originalScale;
|
||||
if (currentResizeAxis == ResizeAxis.Horizontal)
|
||||
ns.x = Mathf.Max(0.1f, originalScale.x + delta.x);
|
||||
else
|
||||
ns.y = Mathf.Max(0.1f, originalScale.y + delta.y);
|
||||
resizingTarget.transform.localScale = ns;
|
||||
if (IsOverlapping(resizingTarget))
|
||||
{
|
||||
resizingTarget.transform.localScale = originalScale;
|
||||
Debug.Log("Redim annulé : collision");
|
||||
}
|
||||
if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
isResizing = false;
|
||||
resizingTarget = null;
|
||||
currentResizeAxis = ResizeAxis.None;
|
||||
Debug.Log("Fin redim");
|
||||
}
|
||||
}
|
||||
|
||||
bool IsOverlapping(GameObject obj)
|
||||
{
|
||||
var b = obj.GetComponent<Collider2D>().bounds;
|
||||
foreach (var h in Physics2D.OverlapBoxAll(b.center, b.size, 0f))
|
||||
if (h.gameObject != obj) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void HandleBlockDeletion()
|
||||
{
|
||||
if (!Input.GetMouseButtonDown(1)) return;
|
||||
Vector2 m = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
var hit = Physics2D.OverlapPoint(m);
|
||||
if (hit != null && !hit.CompareTag("Ground"))
|
||||
{
|
||||
var toD = hit.gameObject;
|
||||
if ((toD.name.Contains("ObstacleSafer") || toD.name.Contains("ObstacleKiller"))
|
||||
&& toD.transform.parent != null
|
||||
&& toD.transform.parent.name.Contains("ObstacleBlock"))
|
||||
toD = toD.transform.parent.gameObject;
|
||||
if (toD == currentBlock) { currentBlock = null; isPlacingBlock = false; }
|
||||
Destroy(toD);
|
||||
Debug.Log($"Supprimé {toD.name}");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Utility
|
||||
|
||||
bool IsPointerOverUI()
|
||||
=> EventSystem.current != null && EventSystem.current.IsPointerOverGameObject();
|
||||
|
||||
void TrySnapToNearbyBlock()
|
||||
{
|
||||
if (currentBlock == null) return;
|
||||
|
||||
var col = currentBlock.GetComponent<Collider2D>();
|
||||
var b = col.bounds;
|
||||
float snapDistance = 1f;
|
||||
float verticalEps = 0.1f;
|
||||
|
||||
// === SNAP HORIZONTAL (droite)
|
||||
Vector2 hBoxSize = new Vector2(snapDistance, b.size.y - verticalEps * 2f);
|
||||
Vector2 rightCenter = new Vector2(b.max.x + snapDistance / 2f, b.center.y);
|
||||
var hits = Physics2D.OverlapBoxAll(rightCenter, hBoxSize, 0f);
|
||||
foreach (var h in hits)
|
||||
{
|
||||
if (IsInvalidSnapTarget(h)) continue;
|
||||
float newX = h.bounds.min.x - b.extents.x;
|
||||
currentBlock.transform.position = new Vector3(newX, currentBlock.transform.position.y, -1f);
|
||||
Debug.Log($"Snap horizontal à droite contre {h.name}");
|
||||
return;
|
||||
}
|
||||
|
||||
// === SNAP HORIZONTAL (gauche)
|
||||
Vector2 leftCenter = new Vector2(b.min.x - snapDistance / 2f, b.center.y);
|
||||
hits = Physics2D.OverlapBoxAll(leftCenter, hBoxSize, 0f);
|
||||
foreach (var h in hits)
|
||||
{
|
||||
if (IsInvalidSnapTarget(h)) continue;
|
||||
float newX = h.bounds.max.x + b.extents.x;
|
||||
currentBlock.transform.position = new Vector3(newX, currentBlock.transform.position.y, -1f);
|
||||
Debug.Log($"Snap horizontal à gauche contre {h.name}");
|
||||
return;
|
||||
}
|
||||
|
||||
// === SNAP VERTICAL (dessous)
|
||||
Vector2 downBoxSize = new Vector2(b.size.x - 0.1f, snapDistance);
|
||||
Vector2 downCenter = new Vector2(b.center.x, b.min.y - snapDistance / 2f);
|
||||
hits = Physics2D.OverlapBoxAll(downCenter, downBoxSize, 0f);
|
||||
foreach (var h in hits)
|
||||
{
|
||||
if (IsInvalidSnapTarget(h)) continue;
|
||||
float newY = h.bounds.max.y + b.extents.y;
|
||||
currentBlock.transform.position = new Vector3(currentBlock.transform.position.x, newY, -1f);
|
||||
Debug.Log($"Snap vertical (bas) contre {h.name}");
|
||||
return;
|
||||
}
|
||||
|
||||
// === SNAP VERTICAL (au-dessus)
|
||||
Vector2 upCenter = new Vector2(b.center.x, b.max.y + snapDistance / 2f);
|
||||
hits = Physics2D.OverlapBoxAll(upCenter, downBoxSize, 0f);
|
||||
foreach (var h in hits)
|
||||
{
|
||||
if (IsInvalidSnapTarget(h)) continue;
|
||||
float newY = h.bounds.min.y - b.extents.y;
|
||||
currentBlock.transform.position = new Vector3(currentBlock.transform.position.x, newY, -1f);
|
||||
Debug.Log($"Snap vertical (haut) contre {h.name}");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
bool IsInvalidSnapTarget(Collider2D h)
|
||||
{
|
||||
if (h == null || h.gameObject == currentBlock || h.isTrigger) return true;
|
||||
|
||||
var t = h.transform;
|
||||
if (t.parent != null && t.parent.name.Contains("ObstacleBlock"))
|
||||
{
|
||||
if (t.name.Contains("ObstacleKiller") || t.name.Contains("ObstacleSafer"))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Filtrage des enfants parasites
|
||||
bool IsChildOfObstacleBlock(Collider2D col)
|
||||
{
|
||||
var t = col.transform;
|
||||
if (t.parent == null) return false;
|
||||
|
||||
bool isNamedObstacleChild = t.name.Contains("ObstacleSafer") || t.name.Contains("ObstacleKiller");
|
||||
bool parentIsBlock = t.parent.name.Contains("ObstacleBlock");
|
||||
return isNamedObstacleChild && parentIsBlock;
|
||||
}
|
||||
|
||||
void HandleBlockRotation()
|
||||
{
|
||||
currentBlock.transform.Rotate(0, 0, -90f);
|
||||
Debug.Log("Rotation 90°!");
|
||||
}
|
||||
|
||||
void InstantiateAndPrepare(GameObject prefab, Vector3? scaleOverride = null)
|
||||
{
|
||||
var obj = Instantiate(prefab, persistentBlockContainer);
|
||||
GameObject obj = Instantiate(prefab);
|
||||
obj.transform.position = new Vector3(0, 0, -1);
|
||||
obj.transform.localScale = scaleOverride ?? currentScale;
|
||||
|
||||
try { obj.tag = prefab.name; }
|
||||
catch { Debug.LogWarning($"Le tag '{prefab.name}' n'existe pas. Ajoutez-le dans Project Settings > Tags."); }
|
||||
|
||||
if (mapParent != null)
|
||||
obj.transform.SetParent(mapParent);
|
||||
|
||||
currentBlock = obj;
|
||||
currentBlock.tag = prefab.tag;
|
||||
isPlacingBlock = true;
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public void ClearEditor()
|
||||
{
|
||||
if (persistentBlockContainer == null) return;
|
||||
|
||||
foreach (Transform child in persistentBlockContainer)
|
||||
{
|
||||
Destroy(child.gameObject);
|
||||
}
|
||||
|
||||
Debug.Log("Éditeur vidé.");
|
||||
|
||||
currentBlock = null;
|
||||
isPlacingBlock = false;
|
||||
currentPage = 0;
|
||||
ClearCurrentButtons();
|
||||
GenerateButtons();
|
||||
// TODO : Implémenter la sauvegarde du niveau
|
||||
}
|
||||
}
|
||||
|
@ -5,154 +5,59 @@ using System.IO;
|
||||
public class LevelLoader : MonoBehaviour
|
||||
{
|
||||
public LevelsLoader levelsLoader;
|
||||
public bool editMode;
|
||||
public bool createMode;
|
||||
public AudioSource musicSource;
|
||||
public AudioSource audioSource;
|
||||
public Text progressionText;
|
||||
private readonly float groundY = -6.034f;
|
||||
|
||||
private GameObject GetPrefab(string type)
|
||||
{
|
||||
var prefab = Resources.Load<GameObject>("Prefabs/" + type);
|
||||
if (prefab == null)
|
||||
{
|
||||
Debug.LogError($"Prefab introuvable pour : {type}");
|
||||
}
|
||||
return prefab;
|
||||
return Resources.Load<GameObject>("Prefabs/" + type);
|
||||
}
|
||||
|
||||
private void LoadAudio()
|
||||
{
|
||||
musicSource.clip = Resources.Load<AudioClip>(Path.Combine("Musics", levelsLoader.levelCurrent.musicName));
|
||||
audioSource.clip = Resources.Load<AudioClip>(Path.Combine("Musics", levelsLoader.levelCurrent.musicName));
|
||||
|
||||
if (PlayerPrefs.HasKey("Volume"))
|
||||
{
|
||||
musicSource.volume = PlayerPrefs.GetFloat("Volume");
|
||||
audioSource.volume = PlayerPrefs.GetFloat("Volume");
|
||||
}
|
||||
else
|
||||
{
|
||||
musicSource.volume = 1f;
|
||||
audioSource.volume = 1f;
|
||||
}
|
||||
musicSource.Play();
|
||||
|
||||
audioSource.Play();
|
||||
}
|
||||
|
||||
private void LoadElements()
|
||||
{
|
||||
Level current = levelsLoader.levelCurrent;
|
||||
|
||||
foreach (var element in current.elements)
|
||||
{
|
||||
GameObject prefab = GetPrefab(element.type);
|
||||
if (prefab == null) continue;
|
||||
GameObject instance = Instantiate(prefab, new Vector3(element.x, element.y, 0), Quaternion.identity);
|
||||
|
||||
GameObject instance = Instantiate(
|
||||
prefab,
|
||||
new Vector3(element.x, element.y, 0),
|
||||
Quaternion.identity
|
||||
);
|
||||
|
||||
if (editMode)
|
||||
{
|
||||
foreach (Transform child in instance.transform)
|
||||
{
|
||||
if (child.name.Contains("ObstacleKiller"))
|
||||
{
|
||||
var col = child.GetComponent<BoxCollider2D>();
|
||||
if (col != null && col.size.y > 2f) // Trop grand
|
||||
{
|
||||
Debug.LogWarning($"⚠️ Collider {child.name} trop grand, réduction appliquée.");
|
||||
col.size = new Vector2(col.size.x, 1f);
|
||||
col.offset = new Vector2(col.offset.x, -2f); // Ajuste selon ton design
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// En mode jeu/test uniquement → ajout du AICollider
|
||||
if (!editMode)
|
||||
{
|
||||
if (prefab.CompareTag("Kill"))
|
||||
{
|
||||
Instantiate(
|
||||
Resources.Load<GameObject>("AICollider"),
|
||||
new Vector3(element.x - 1, element.y, 0),
|
||||
Quaternion.identity
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Appliquer l'échelle personnalisée
|
||||
Vector3 originalScale = instance.transform.localScale;
|
||||
float newScaleX = element.scaleX > 0 ? element.scaleX : originalScale.x;
|
||||
float newScaleY = element.scaleY > 0 ? element.scaleY : originalScale.y;
|
||||
|
||||
instance.transform.localScale = new Vector3(newScaleX, newScaleY, originalScale.z);
|
||||
}
|
||||
|
||||
// Sol uniquement en mode jeu
|
||||
if (!editMode)
|
||||
{
|
||||
GameObject groundPrefab = GetPrefab("Ground");
|
||||
if (groundPrefab != null)
|
||||
{
|
||||
GameObject groundInstance = Instantiate(
|
||||
groundPrefab,
|
||||
new Vector3(current.LastX / 2, groundY, 0),
|
||||
Quaternion.identity
|
||||
);
|
||||
groundInstance.transform.localScale = new Vector3(current.LastX / 5f * 2, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Mur de fin toujours placé
|
||||
GameObject winWall = GetPrefab("WinnerWall");
|
||||
if (winWall != null)
|
||||
{
|
||||
Instantiate(
|
||||
winWall,
|
||||
new Vector3(current.LastX, 0, 0),
|
||||
Quaternion.Euler(0, 0, 90)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>();
|
||||
Level current = levelsLoader.levelCurrent;
|
||||
createMode = PlayerPrefs.GetInt("CreateMode", 0) == 1;
|
||||
if (!editMode)
|
||||
{
|
||||
GameObject groundPrefab = GetPrefab("Ground");
|
||||
GameObject groundInstance = Instantiate(groundPrefab, new Vector3(current.LastX / 2, groundY, 0), Quaternion.identity);
|
||||
float groundWidth = current.LastX;
|
||||
groundInstance.transform.localScale = new Vector3(groundWidth / 5f * 2, 1, 1);
|
||||
}
|
||||
Instantiate(GetPrefab("WinnerWall"), new Vector3(current.LastX, 0, 0), Quaternion.Euler(0, 0, 90));
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
if (!createMode)
|
||||
{
|
||||
levelsLoader = GameObject
|
||||
.FindGameObjectWithTag("LevelsLoader")
|
||||
.GetComponent<LevelsLoader>();
|
||||
levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>();
|
||||
levelsLoader.IncreaseTotalAttempts();
|
||||
|
||||
levelsLoader.IncreaseTotalAttempts();
|
||||
|
||||
LoadElements();
|
||||
if (!editMode)
|
||||
LoadAudio();
|
||||
}
|
||||
LoadAudio();
|
||||
LoadElements();
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (!editMode)
|
||||
{
|
||||
progressionText.text = levelsLoader.levelCurrent.ProgressionPercent + "%";
|
||||
}
|
||||
Level current = levelsLoader.levelCurrent;
|
||||
progressionText.text = current.ProgressionPercent + "%";
|
||||
}
|
||||
}
|
||||
|
@ -18,39 +18,46 @@ public class LevelsLoader : MonoBehaviour
|
||||
private void LoadAllLevels()
|
||||
{
|
||||
TextAsset[] levelFiles = Resources.LoadAll<TextAsset>("Levels");
|
||||
TextAsset[] levelStatsFiles = Resources.LoadAll<TextAsset>("LevelsStats");
|
||||
|
||||
Dictionary<string, LevelStat> levelStatsMap = new();
|
||||
foreach (TextAsset jsonTextFileStats in levelStatsFiles)
|
||||
{
|
||||
LevelStat levelStat = LevelStat.CreateFromJSON(jsonTextFileStats.text);
|
||||
levelStat.JsonName = jsonTextFileStats.name;
|
||||
levelStatsMap[levelStat.JsonName] = levelStat;
|
||||
}
|
||||
|
||||
foreach (TextAsset jsonTextFile in levelFiles)
|
||||
{
|
||||
Level level = Level.CreateFromJSON(jsonTextFile.text);
|
||||
level.JsonName = jsonTextFile.name;
|
||||
level.TotalAttempts = 0;
|
||||
level.TotalJumps = 0;
|
||||
level.ProgressionPercent = 0;
|
||||
level.ProgressionPercentMax = 0;
|
||||
|
||||
string statPath = Path.Combine(Application.persistentDataPath, level.JsonName + ".json");
|
||||
if (File.Exists(statPath))
|
||||
if (levelStatsMap.TryGetValue(level.JsonName, out LevelStat levelStat))
|
||||
{
|
||||
string statJson = File.ReadAllText(statPath);
|
||||
LevelStat levelStat = JsonUtility.FromJson<LevelStat>(statJson);
|
||||
|
||||
level.TotalAttempts = levelStat.totalAttempts;
|
||||
level.TotalJumps = levelStat.totalJumps;
|
||||
level.ProgressionPercentMax = levelStat.progressionPercent;
|
||||
}
|
||||
else
|
||||
{
|
||||
level.TotalAttempts = 0;
|
||||
level.TotalJumps = 0;
|
||||
level.ProgressionPercentMax = 0;
|
||||
levelStat = new LevelStat { JsonName = level.JsonName, totalJumps = 0, totalAttempts = 0 };
|
||||
levelStatsMap[level.JsonName] = levelStat;
|
||||
}
|
||||
|
||||
level.ProgressionPercent = 0;
|
||||
levels.Add(level);
|
||||
}
|
||||
|
||||
levels.Sort((x, y) => x.order.CompareTo(y.order));
|
||||
}
|
||||
|
||||
private void SaveLevelCurrent()
|
||||
{
|
||||
if (levelCurrent == null) return;
|
||||
string levelJson = JsonUtility.ToJson(levelCurrent, true) + "\n";
|
||||
File.WriteAllText(Path.Combine(Application.dataPath, "Resources", "Levels", levelCurrent.JsonName + ".json"), levelJson);
|
||||
|
||||
LevelStat levelStat = new()
|
||||
{
|
||||
@ -59,54 +66,39 @@ public class LevelsLoader : MonoBehaviour
|
||||
totalAttempts = levelCurrent.TotalAttempts,
|
||||
progressionPercent = levelCurrent.ProgressionPercentMax,
|
||||
};
|
||||
|
||||
string levelStatJson = JsonUtility.ToJson(levelStat, true) + "\n";
|
||||
|
||||
string savePath = Path.Combine(Application.persistentDataPath, levelCurrent.JsonName + ".json");
|
||||
File.WriteAllText(savePath, levelStatJson);
|
||||
File.WriteAllText(Path.Combine(Application.dataPath, "Resources", "LevelsStats", levelCurrent.JsonName + ".json"), levelStatJson);
|
||||
}
|
||||
|
||||
public void NextLevel()
|
||||
{
|
||||
if (levels.Count == 0) return;
|
||||
|
||||
int currentIndex = levels.IndexOf(levelCurrent);
|
||||
levelCurrent = levels[(currentIndex + 1) % levels.Count];
|
||||
}
|
||||
|
||||
public void PreviousLevel()
|
||||
{
|
||||
if (levels.Count == 0) return;
|
||||
|
||||
int currentIndex = levels.IndexOf(levelCurrent);
|
||||
levelCurrent = levels[(currentIndex - 1 + levels.Count) % levels.Count];
|
||||
}
|
||||
|
||||
public void IncreaseTotalJumps()
|
||||
{
|
||||
if (levelCurrent == null) return;
|
||||
|
||||
levelCurrent.TotalJumps += 1;
|
||||
SaveLevelCurrent();
|
||||
}
|
||||
|
||||
public void IncreaseTotalAttempts()
|
||||
{
|
||||
if (levelCurrent == null) return;
|
||||
|
||||
levelCurrent.TotalAttempts += 1;
|
||||
SaveLevelCurrent();
|
||||
}
|
||||
|
||||
public int CalculateCurrentProgressionPercent(Vector3 playerPosition)
|
||||
{
|
||||
if (levelCurrent == null) return 0;
|
||||
|
||||
float lastX = levelCurrent.LastX;
|
||||
GameObject winnerWallPrefab = Resources.Load<GameObject>("Prefabs/WinnerWall");
|
||||
float winnerWallWidth = winnerWallPrefab != null
|
||||
? winnerWallPrefab.GetComponent<Renderer>().bounds.size.x
|
||||
: 0f;
|
||||
float winnerWallWidth = winnerWallPrefab.GetComponent<Renderer>().bounds.size.x;
|
||||
float marginError = 0.5f;
|
||||
float totalDistance = lastX - (winnerWallWidth / 2) - marginError;
|
||||
|
||||
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 588b3f9ce673f764b8a3a81842ed9f46
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,25 +1,10 @@
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class LevelHomeButton : MonoBehaviour
|
||||
{
|
||||
public AudioSource sfxSource;
|
||||
|
||||
public static IEnumerator PlaySoundAndLoadScene(AudioSource sfxSource, string scene)
|
||||
{
|
||||
yield return new WaitWhile(() => sfxSource.isPlaying);
|
||||
SceneManager.LoadScene(scene);
|
||||
}
|
||||
|
||||
public void GoToHome()
|
||||
{
|
||||
PlayerPrefs.SetInt("CreateMode", 0);
|
||||
PlayerPrefs.SetInt("EditMode", 0);
|
||||
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
StartCoroutine(PlaySoundAndLoadScene(sfxSource, "HomeScene"));
|
||||
SceneManager.LoadScene("HomeScene");
|
||||
}
|
||||
}
|
||||
|
@ -7,9 +7,4 @@ public class LevelNameButton : MonoBehaviour
|
||||
{
|
||||
SceneManager.LoadScene("LevelScene");
|
||||
}
|
||||
public void EditLevel()
|
||||
{
|
||||
PlayerPrefs.SetInt("CreateMode", 0);
|
||||
SceneManager.LoadScene("LevelEditorScene");
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,7 @@
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
|
||||
public class LevelNextButton : MonoBehaviour
|
||||
{
|
||||
public AudioSource sfxSource;
|
||||
public LevelsLoader levelsLoader;
|
||||
|
||||
public void Start()
|
||||
@ -11,18 +9,8 @@ public class LevelNextButton : MonoBehaviour
|
||||
levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>();
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.RightArrow))
|
||||
{
|
||||
NextLevel();
|
||||
}
|
||||
}
|
||||
|
||||
public void NextLevel()
|
||||
{
|
||||
levelsLoader.NextLevel();
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,7 @@
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
|
||||
public class LevelPreviousButton : MonoBehaviour
|
||||
{
|
||||
public AudioSource sfxSource;
|
||||
public LevelsLoader levelsLoader;
|
||||
|
||||
public void Start()
|
||||
@ -11,18 +9,8 @@ public class LevelPreviousButton : MonoBehaviour
|
||||
levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>();
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.LeftArrow))
|
||||
{
|
||||
PreviousLevel();
|
||||
}
|
||||
}
|
||||
|
||||
public void PreviousLevel()
|
||||
{
|
||||
levelsLoader.PreviousLevel();
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
}
|
||||
}
|
||||
|
@ -1,25 +1,21 @@
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MainMenu : MonoBehaviour
|
||||
{
|
||||
public AudioSource sfxSource;
|
||||
|
||||
public void LaunchGame()
|
||||
{
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "SelectLevelScene"));
|
||||
SceneManager.LoadSceneAsync("SelectLevelScene");
|
||||
}
|
||||
|
||||
public void OpenImport()
|
||||
{
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
SceneManager.LoadSceneAsync("ImportScene");
|
||||
}
|
||||
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "ImportScene"));
|
||||
public void OpenSettings()
|
||||
{
|
||||
// SceneManager.LoadSceneAsync(?);
|
||||
}
|
||||
|
||||
public void QuitGame()
|
||||
@ -29,34 +25,6 @@ public class MainMenu : MonoBehaviour
|
||||
|
||||
public void LevelEditor()
|
||||
{
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "LevelEditorScene"));
|
||||
}
|
||||
|
||||
public void CreateVoidLevel()
|
||||
{
|
||||
PlayerPrefs.SetInt("CreateMode", 1);
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "LevelEditorScene"));
|
||||
}
|
||||
|
||||
public void EditorChoice()
|
||||
{
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "EditorChoiceScene"));
|
||||
}
|
||||
|
||||
public void EditLevel()
|
||||
{
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "click"));
|
||||
sfxSource.Play();
|
||||
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "SelectLevelToEditScene"));
|
||||
SceneManager.LoadSceneAsync("LevelEditorScene");
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ using UnityEngine.UI;
|
||||
|
||||
public class PageScript : MonoBehaviour
|
||||
{
|
||||
public List<GameObject> buttons;
|
||||
public List<GameObject> buttons; // À assigner dans l’inspector
|
||||
public int visibleCount = 4;
|
||||
private int currentIndex = 0;
|
||||
|
||||
|
@ -13,26 +13,26 @@ public class PauseMenu : MonoBehaviour
|
||||
{
|
||||
if (PlayerPrefs.HasKey("Volume"))
|
||||
{
|
||||
levelLoader.musicSource.volume = PlayerPrefs.GetFloat("Volume");
|
||||
volumeSlider.value = levelLoader.musicSource.volume;
|
||||
levelLoader.audioSource.volume = PlayerPrefs.GetFloat("Volume");
|
||||
volumeSlider.value = levelLoader.audioSource.volume;
|
||||
}
|
||||
else
|
||||
{
|
||||
levelLoader.musicSource.volume = 1f;
|
||||
levelLoader.audioSource.volume = 1f;
|
||||
volumeSlider.value = 1f;
|
||||
}
|
||||
}
|
||||
|
||||
public void ChangeVolume()
|
||||
{
|
||||
levelLoader.musicSource.volume = volumeSlider.value;
|
||||
PlayerPrefs.SetFloat("Volume", levelLoader.musicSource.volume);
|
||||
levelLoader.audioSource.volume = volumeSlider.value;
|
||||
PlayerPrefs.SetFloat("Volume", levelLoader.audioSource.volume);
|
||||
}
|
||||
|
||||
public void Pause()
|
||||
{
|
||||
Time.timeScale = 0;
|
||||
levelLoader.musicSource.Pause();
|
||||
levelLoader.audioSource.Pause();
|
||||
|
||||
pauseMenu.SetActive(true);
|
||||
pauseButton.SetActive(false);
|
||||
@ -47,7 +47,7 @@ public class PauseMenu : MonoBehaviour
|
||||
public void Resume()
|
||||
{
|
||||
Time.timeScale = 1;
|
||||
levelLoader.musicSource.Play();
|
||||
levelLoader.audioSource.Play();
|
||||
|
||||
pauseMenu.SetActive(false);
|
||||
pauseButton.SetActive(true);
|
||||
|
@ -1,4 +1,3 @@
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
@ -7,14 +6,11 @@ public class Player : MonoBehaviour
|
||||
public Rigidbody2D RigidBody { get; private set; }
|
||||
public Transform Transform { get; private set; }
|
||||
public ParticleSystem Particle { get; private set; }
|
||||
public LevelsLoader LevelsLoader { get; set; }
|
||||
public LevelsLoader LevelsLoader { get; private set; }
|
||||
public SpriteRenderer SpriteRenderer { get; private set; }
|
||||
public bool IsColliding { get; set; } = true;
|
||||
public bool HasStarted { get; set; } = false;
|
||||
public bool HasStarted { get; private set; } = false;
|
||||
public bool CanJump { get; set; } = true;
|
||||
public PauseMenu pauseMenu;
|
||||
public AudioSource sfxSource;
|
||||
public bool editMode { get; set; } = false;
|
||||
|
||||
public IGameMode CurrentGameMode { get; set; }
|
||||
public float SpeedMultiplier = 1f;
|
||||
@ -25,16 +21,7 @@ public class Player : MonoBehaviour
|
||||
Transform = transform;
|
||||
Particle = GetComponentInChildren<ParticleSystem>();
|
||||
SpriteRenderer = GetComponentInChildren<SpriteRenderer>();
|
||||
|
||||
GameObject loaderObj = GameObject.FindGameObjectWithTag("LevelsLoader");
|
||||
if (loaderObj != null)
|
||||
{
|
||||
LevelsLoader = loaderObj.GetComponent<LevelsLoader>();
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("LevelsLoader introuvable : Progression désactivée pour ce niveau.");
|
||||
}
|
||||
LevelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>();
|
||||
}
|
||||
|
||||
public void Start()
|
||||
@ -43,89 +30,33 @@ public class Player : MonoBehaviour
|
||||
mainModule.simulationSpace = ParticleSystemSimulationSpace.World;
|
||||
Particle.transform.parent = null;
|
||||
|
||||
Invoke(nameof(EnableInput), 0.1f);
|
||||
|
||||
CurrentGameMode = new NormalGameMode();
|
||||
}
|
||||
|
||||
public bool IsAI
|
||||
private void EnableInput()
|
||||
{
|
||||
get
|
||||
{
|
||||
if (PlayerPrefs.HasKey("AI"))
|
||||
{
|
||||
return PlayerPrefs.GetInt("AI") == 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
PlayerPrefs.SetInt("AI", value ? 1 : 0);
|
||||
}
|
||||
HasStarted = true;
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
CurrentGameMode?.Update(this);
|
||||
|
||||
if (LevelsLoader != null)
|
||||
{
|
||||
LevelsLoader.CalculateCurrentProgressionPercent(transform.position);
|
||||
}
|
||||
|
||||
if (Input.GetKeyDown(KeyCode.Escape))
|
||||
{
|
||||
if (pauseMenu.pauseMenu.activeSelf)
|
||||
{
|
||||
pauseMenu.Resume();
|
||||
}
|
||||
else
|
||||
{
|
||||
pauseMenu.Pause();
|
||||
}
|
||||
}
|
||||
CurrentGameMode.Update(this);
|
||||
LevelsLoader.CalculateCurrentProgressionPercent(transform.position);
|
||||
}
|
||||
|
||||
public virtual void OnCollisionEnter2D(Collision2D collision)
|
||||
public void OnCollisionEnter2D(Collision2D collision)
|
||||
{
|
||||
CurrentGameMode?.OnCollisionEnter(this, collision);
|
||||
|
||||
if (editMode && (collision.gameObject.CompareTag("Kill") || collision.gameObject.CompareTag("Win")))
|
||||
{
|
||||
GameObject spawn = new GameObject("AutoSpawnPoint");
|
||||
spawn.transform.position = new Vector3(-16, -3, 0f);
|
||||
transform.position = spawn.transform.position;
|
||||
RigidBody.linearVelocity = Vector2.zero;
|
||||
SpeedMultiplier = 1f;
|
||||
CurrentGameMode = new NormalGameMode();
|
||||
SpriteRenderer.sprite = Resources.Load<Sprite>("Shapes/BaseSquare");
|
||||
return;
|
||||
}
|
||||
|
||||
if (collision.gameObject.CompareTag("Kill"))
|
||||
{
|
||||
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "death"));
|
||||
sfxSource.Play();
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, SceneManager.GetActiveScene().name));
|
||||
|
||||
}
|
||||
|
||||
if (collision.gameObject.CompareTag("Win"))
|
||||
{
|
||||
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "win"));
|
||||
sfxSource.Play();
|
||||
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "SelectLevelScene"));
|
||||
}
|
||||
CurrentGameMode.OnCollisionEnter(this, collision);
|
||||
}
|
||||
|
||||
public void OnCollisionExit2D(Collision2D collision)
|
||||
{
|
||||
CurrentGameMode?.OnCollisionExit(this, collision);
|
||||
CurrentGameMode.OnCollisionExit(this, collision);
|
||||
}
|
||||
|
||||
public virtual void OnTriggerEnter2D(Collider2D collision)
|
||||
private void OnTriggerEnter2D(Collider2D collision)
|
||||
{
|
||||
if (collision.CompareTag("ShipPortal"))
|
||||
{
|
||||
@ -147,10 +78,6 @@ public class Player : MonoBehaviour
|
||||
SpeedMultiplier /= 1.5f;
|
||||
Destroy(collision.gameObject);
|
||||
}
|
||||
else if (collision.CompareTag("AICollider") && IsAI)
|
||||
{
|
||||
CurrentGameMode.Jump(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void ChangeGameMode(IGameMode newMode)
|
||||
|
@ -5,12 +5,8 @@ public class PlayerCamera : MonoBehaviour
|
||||
public GameObject playerObject;
|
||||
public float normalMinYFollow = 2.0f;
|
||||
public float shipMinYFollow = 6.0f;
|
||||
public float smoothSpeed = 5.0f;
|
||||
private float initialY;
|
||||
|
||||
[Header("References")]
|
||||
public bool isPlaying;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
initialY = transform.position.y;
|
||||
@ -18,29 +14,20 @@ public class PlayerCamera : MonoBehaviour
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (!isPlaying) return;
|
||||
|
||||
Player player = playerObject.GetComponent<Player>();
|
||||
|
||||
// Choix du minY selon le mode de jeu
|
||||
float minYFollow = (player.CurrentGameMode is ShipGameMode)
|
||||
? shipMinYFollow
|
||||
: normalMinYFollow;
|
||||
float minYFollow = normalMinYFollow;
|
||||
if (player.CurrentGameMode is ShipGameMode)
|
||||
{
|
||||
minYFollow = shipMinYFollow;
|
||||
}
|
||||
|
||||
// Calcul de la cible Y
|
||||
float targetY = initialY;
|
||||
if (playerObject.transform.position.y > minYFollow)
|
||||
{
|
||||
targetY = playerObject.transform.position.y;
|
||||
}
|
||||
|
||||
// Interpolation douce
|
||||
float newY = Mathf.Lerp(transform.position.y, targetY, smoothSpeed * Time.deltaTime);
|
||||
|
||||
// Clamp pour éviter de descendre sous Y = 0
|
||||
newY = Mathf.Max(newY, 0f);
|
||||
|
||||
// On suit aussi l'axe X du joueur
|
||||
float newX = playerObject.transform.position.x;
|
||||
|
||||
transform.position = new Vector3(newX, newY, transform.position.z);
|
||||
transform.position = new Vector3(playerObject.transform.position.x, targetY, transform.position.z);
|
||||
}
|
||||
}
|
||||
|
@ -1,134 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class TestManager : MonoBehaviour
|
||||
{
|
||||
[Header("References")]
|
||||
public IGameMode gameMode;
|
||||
public Player currentPlayer;
|
||||
public Transform spawnPoint;
|
||||
public GameObject editorUI;
|
||||
public PlayerCamera playerCamera;
|
||||
public AudioSource sfxSource;
|
||||
|
||||
private bool isTesting = false;
|
||||
|
||||
void Start()
|
||||
{
|
||||
if (spawnPoint == null)
|
||||
{
|
||||
GameObject spawn = new GameObject("AutoSpawnPoint");
|
||||
spawn.transform.position = new Vector3(-16, -3, 0f);
|
||||
spawnPoint = spawn.transform;
|
||||
}
|
||||
|
||||
if (currentPlayer == null)
|
||||
{
|
||||
Debug.LogError("[TestManager] Aucun Player assigné !");
|
||||
}
|
||||
else
|
||||
{
|
||||
gameMode = new NormalGameMode();
|
||||
currentPlayer.editMode = true;
|
||||
currentPlayer.ChangeGameMode(gameMode);
|
||||
currentPlayer.SpeedMultiplier = 0f;
|
||||
|
||||
if (currentPlayer.SpriteRenderer != null)
|
||||
currentPlayer.SpriteRenderer.enabled = false;
|
||||
|
||||
if (currentPlayer.Particle != null)
|
||||
currentPlayer.Particle.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear); // 🛑 Stop propre
|
||||
}
|
||||
|
||||
if (playerCamera != null)
|
||||
{
|
||||
playerCamera.isPlaying = false;
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (isTesting && currentPlayer == null)
|
||||
{
|
||||
StopTest();
|
||||
}
|
||||
}
|
||||
|
||||
public void StartOrStop()
|
||||
{
|
||||
if (isTesting)
|
||||
StopTest();
|
||||
else
|
||||
StartTest();
|
||||
}
|
||||
|
||||
public void StartTest()
|
||||
{
|
||||
if (currentPlayer == null)
|
||||
{
|
||||
Debug.LogError("[TestManager] Player manquant pour lancer le test !");
|
||||
return;
|
||||
}
|
||||
|
||||
if (editorUI != null)
|
||||
{
|
||||
Debug.LogError("editor UI null");
|
||||
editorUI.SetActive(false);
|
||||
}
|
||||
|
||||
currentPlayer.transform.position = spawnPoint.position;
|
||||
currentPlayer.transform.rotation = Quaternion.Euler(0f, 0f, 0f);
|
||||
currentPlayer.RigidBody.freezeRotation = true;
|
||||
currentPlayer.RigidBody.linearVelocity = Vector2.zero;
|
||||
currentPlayer.SpeedMultiplier = 1f;
|
||||
// currentPlayer.SpriteRenderer.sprite = Resources.Load<Sprite>("Shapes/BaseSquare");
|
||||
|
||||
currentPlayer.ChangeGameMode(gameMode);
|
||||
isTesting = true;
|
||||
|
||||
if (playerCamera != null)
|
||||
{
|
||||
playerCamera.playerObject = currentPlayer.gameObject;
|
||||
playerCamera.isPlaying = true;
|
||||
}
|
||||
|
||||
if (currentPlayer.SpriteRenderer != null)
|
||||
currentPlayer.SpriteRenderer.enabled = true;
|
||||
|
||||
if (currentPlayer.Particle != null)
|
||||
currentPlayer.Particle.Play(); // Démarrer la particule
|
||||
|
||||
Debug.Log("[TestManager] Test du niveau démarré !");
|
||||
}
|
||||
|
||||
public void StopTest()
|
||||
{
|
||||
if (currentPlayer != null)
|
||||
{
|
||||
currentPlayer.transform.position = spawnPoint.position;
|
||||
currentPlayer.RigidBody.linearVelocity = Vector2.zero;
|
||||
currentPlayer.RigidBody.angularVelocity = 0f;
|
||||
currentPlayer.transform.rotation = Quaternion.identity;
|
||||
currentPlayer.SpriteRenderer.sprite = Resources.Load<Sprite>("Shapes/BaseSquare");
|
||||
currentPlayer.SpeedMultiplier = 0f;
|
||||
|
||||
if (currentPlayer.Particle != null)
|
||||
currentPlayer.Particle.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear); // Arrêter proprement
|
||||
|
||||
if (currentPlayer.SpriteRenderer != null)
|
||||
currentPlayer.SpriteRenderer.enabled = false;
|
||||
}
|
||||
|
||||
if (editorUI != null)
|
||||
editorUI.SetActive(true);
|
||||
|
||||
if (playerCamera != null)
|
||||
{
|
||||
playerCamera.isPlaying = false;
|
||||
playerCamera.transform.position = new Vector3(0f, 0f, -10f);
|
||||
}
|
||||
|
||||
isTesting = false;
|
||||
|
||||
Debug.Log("[TestManager] Test du niveau arrêté, joueur reset et caméra recentrée !");
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c6d38f8c53ec314c9827a842e6f17d8
|
Before Width: | Height: | Size: 387 KiB |
Before Width: | Height: | Size: 619 KiB |
Before Width: | Height: | Size: 589 KiB |
@ -8,11 +8,11 @@ repeat
|
||||
if (Le joueur percute un obstacle ?) then (Oui)
|
||||
:Le joueur meurt;
|
||||
:Augmenter le nombre d'essais de 1;
|
||||
:Perdre toutes les bonus;
|
||||
:Perdre toutes les pièces et bonus;
|
||||
else (Non)
|
||||
partition "Actions du joueur" {
|
||||
group Saut
|
||||
if (L'utilisateur appuie sur espace ?) then (Oui)
|
||||
if (L'utilisateur clique sur l'écran ?) then (Oui)
|
||||
:Le joueur effectue un saut;
|
||||
endif
|
||||
end group
|
||||
@ -27,15 +27,15 @@ repeat
|
||||
end group
|
||||
endif
|
||||
|
||||
if (Le joueur percute un bonus ?) then (Oui)
|
||||
if (Le joueur clique sur un bonus dans son inventaire ?) then (Oui)
|
||||
group Activation de Bonus
|
||||
:Le joueur clique sur un bonus dans l'inventaire;
|
||||
switch (Type de bonus)
|
||||
case (Temps ralenti)
|
||||
:Activer ralentissement du temps;
|
||||
:Durée : 3 secondes;
|
||||
case (Temps accéléré)
|
||||
:Activer accélération du temps;
|
||||
:Temps ralenti : 3 secondes;
|
||||
case (Annulation d'obstacle)
|
||||
:Supprimer tous les obstacles;
|
||||
:Durée : 3 secondes;
|
||||
endswitch
|
||||
end group
|
||||
@ -54,6 +54,9 @@ repeat
|
||||
:Quitter le niveau;
|
||||
:Retour au menu principal;
|
||||
stop
|
||||
case (Mode Checkpoint)
|
||||
:Activer/Désactiver le mode Checkpoint;
|
||||
:Reprendre la partie;
|
||||
case (Volume)
|
||||
:Modifier le volume sonore;
|
||||
:Revenir au menu de pause;
|
||||
@ -69,6 +72,7 @@ repeat
|
||||
if (Le joueur touche la zone de fin ?) then (Oui)
|
||||
:Terminer le niveau;
|
||||
:Animation de fin de niveau;
|
||||
:Conserver les pièces obtenues;
|
||||
break
|
||||
endif
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ repeat
|
||||
:Perdre toutes les pièces et bonus;
|
||||
else (Non)
|
||||
partition "Actions du joueur" {
|
||||
if (L'utilisateur appuie sur espace ?) then (Oui)
|
||||
if (L'utilisateur clique sur l'écran ?) then (Oui)
|
||||
:Le joueur effectue un saut;
|
||||
note right
|
||||
**Saut**
|
||||
@ -29,12 +29,12 @@ repeat
|
||||
end note
|
||||
endif
|
||||
|
||||
if (Le joueur percute un bonus ?) then (Oui)
|
||||
if (Le joueur clique sur un bonus dans son inventaire ?) then (Oui)
|
||||
:Activer un bonus;
|
||||
note right
|
||||
**Activation de Bonus**
|
||||
- Déclenche l'effet du bonus sélectionné.
|
||||
- Exemple : Ralentissement du temps.
|
||||
- Exemple : Invincibilité, Double saut.
|
||||
end note
|
||||
endif
|
||||
}
|
||||
@ -44,7 +44,7 @@ repeat
|
||||
:Arriver sur le menu de pause;
|
||||
note right
|
||||
**Menu de pause**
|
||||
- Affiche les options : Reprendre, Quitter, Volume.
|
||||
- Affiche les options : Reprendre, Quitter, Mode Checkpoint, Volume.
|
||||
end note
|
||||
endif
|
||||
}
|
||||
@ -53,6 +53,12 @@ repeat
|
||||
if (Le joueur touche la zone de fin ?) then (Oui)
|
||||
:Terminer le niveau;
|
||||
:Afficher une animation de fin de niveau;
|
||||
:Conserver les pièces obtenues;
|
||||
note right
|
||||
**Fin du Niveau**
|
||||
- Succès enregistré.
|
||||
- Les pièces collectées sont sauvegardées.
|
||||
end note
|
||||
endif
|
||||
}
|
||||
endif
|
||||
|
@ -5,9 +5,9 @@ start
|
||||
switch (Type de bonus)
|
||||
case (Temps ralenti)
|
||||
:Activer ralentissement du temps;
|
||||
:Durée : 3 secondes;
|
||||
case (Temps accéléré)
|
||||
:Activer accélération du temps;
|
||||
:Temps ralenti : 3 secondes;
|
||||
case (Annulation d'obstacle)
|
||||
:Supprimer tous les obstacles;
|
||||
:Durée : 3 secondes;
|
||||
endswitch
|
||||
stop
|
||||
|
@ -1,7 +1,7 @@
|
||||
@startuml sub-bonus
|
||||
|
||||
start
|
||||
if (Le joueur percute un bonus ?) then (Oui)
|
||||
if (Le joueur touche un bonus ?) then (Oui)
|
||||
:Ajouter le bonus à l'inventaire;
|
||||
else (Non)
|
||||
endif
|
||||
|
10
Documentation/UML/activity-diagram/sub-bumper.puml
Normal file
@ -0,0 +1,10 @@
|
||||
@startuml sub-bumper
|
||||
|
||||
start
|
||||
if (Le joueur touche un bumper ?) then (Oui)
|
||||
:Effectuer un grand saut;
|
||||
else (Non)
|
||||
endif
|
||||
stop
|
||||
|
||||
@enduml
|
@ -7,6 +7,10 @@ switch (Forme)
|
||||
:Mode fusée;
|
||||
case (Forme roue)
|
||||
:Mode roue;
|
||||
case (Forme sens inversé)
|
||||
:Mode sens inversé;
|
||||
case (Forme gravité inversée)
|
||||
:Mode gravité inversée;
|
||||
endswitch
|
||||
stop
|
||||
|
||||
|
@ -11,10 +11,13 @@ else (Quitter)
|
||||
:Quitter le niveau;
|
||||
:Retour au menu principal;
|
||||
stop
|
||||
else (Mode Checkpoint)
|
||||
:Activer/Désactiver le mode Checkpoint;
|
||||
:Revenir au menu de pause;
|
||||
else (Volume)
|
||||
:Modifier le volume sonore;
|
||||
:Revenir au menu de pause;
|
||||
else (Menu de sélection de niveau)
|
||||
else (Menu de sleection de niveau)
|
||||
:Revenir au menu de selection de niveau;
|
||||
endif
|
||||
|
||||
|
10
Documentation/UML/activity-diagram/sub-pieces.puml
Normal file
@ -0,0 +1,10 @@
|
||||
@startuml sub-pieces
|
||||
|
||||
start
|
||||
if (Le joueur touche une pièce ?) then (Oui)
|
||||
:Ajouter la pièce au niveau;
|
||||
else (Non)
|
||||
endif
|
||||
stop
|
||||
|
||||
@enduml
|
@ -1,303 +0,0 @@
|
||||
@startuml Geometry Dash - Diagramme de classe léger
|
||||
|
||||
skinparam style strictuml
|
||||
skinparam classAttributeIconSize 0
|
||||
skinparam classFontStyle Bold
|
||||
hide enum methods
|
||||
|
||||
class PlayerCamera {
|
||||
{field} + playerObject: GameObject
|
||||
{field} + normalMinYFollow: float
|
||||
{field} + shipMinYFollow: float
|
||||
{field} + smoothSpeed: float
|
||||
{field} - initialY: float
|
||||
{field} + isPlaying: bool
|
||||
|
||||
{method} - Start()
|
||||
{method} - Update()
|
||||
}
|
||||
|
||||
class Player {
|
||||
{field} + RigidBody: Rigidbody2D {get} {private set}
|
||||
{field} + Transform: Transform {get} {private set}
|
||||
{field} + Particle: ParticleSystem {get} {private set}
|
||||
{field} + LevelsLoader: LevelsLoader {get} {set}
|
||||
{field} + SpriteRenderer: SpriteRenderer {get} {private set}
|
||||
{field} + IsColliding: bool {get} {set}
|
||||
{field} + HasStarted: bool {get} {set}
|
||||
{field} + CanJump: bool {get} {set}
|
||||
{field} + CurrentGameMode: IGameMode {get} {set}
|
||||
{field} + SpeedMultiplier: float
|
||||
|
||||
{method} + Awake()
|
||||
{method} + Start()
|
||||
{method} + Update()
|
||||
{method} + OnCollisionEnter2D(collision: Collision2D)
|
||||
{method} + OnCollisionExit2D(collision: Collision2D)
|
||||
{method} + OnTriggerEnter2D(collision: Collider2D)
|
||||
{method} + ChangeGameMode(newMode: IGameMode)
|
||||
}
|
||||
Player o--> LevelsLoader : <<References>>
|
||||
Player o--> IGameMode : <<Has>>
|
||||
|
||||
class PauseMenu {
|
||||
{field} + pauseMenu: GameObject
|
||||
{field} + pauseButton: GameObject
|
||||
{field} + levelLoader: LevelLoader
|
||||
{field} + volumeSlider: Slider
|
||||
|
||||
{method} + Start()
|
||||
{method} + ChangeVolume()
|
||||
{method} + Pause()
|
||||
{method} + Home()
|
||||
{method} + Resume()
|
||||
}
|
||||
PauseMenu --> LevelLoader : <<References>>
|
||||
PauseMenu --> GameObject : <<References>>
|
||||
PauseMenu --> Slider : <<References>>
|
||||
|
||||
class MainMenu {
|
||||
{method} + LaunchGame()
|
||||
{method} + OpenImport()
|
||||
{method} + QuitGame()
|
||||
{method} + LevelEditor()
|
||||
{method} + EditorChoice()
|
||||
{method} + CreateLevel()
|
||||
}
|
||||
|
||||
class LevelStat {
|
||||
{field} + JsonName: string {get} {set}
|
||||
{field} + totalJumps: Integer
|
||||
{field} + totalAttempts: Integer
|
||||
{field} + progressionPercent: Integer
|
||||
|
||||
{method} + {static} CreateFromJSON(jsonString: string): LevelStat
|
||||
}
|
||||
|
||||
class LevelsLoader {
|
||||
{field} + levels: List<Level>
|
||||
{field} + levelCurrent: Level
|
||||
|
||||
{method} - Start()
|
||||
{method} - LoadAllLevels()
|
||||
{method} - SaveLevelCurrent()
|
||||
{method} + NextLevel()
|
||||
{method} + PreviousLevel()
|
||||
{method} + IncreaseTotalJumps()
|
||||
{method} + IncreaseTotalAttempts()
|
||||
{method} + CalculateCurrentProgressionPercent(playerPosition: Vector3): Integer
|
||||
{method} + RefreshLevels()
|
||||
}
|
||||
LevelsLoader *--> Level : <<Owns>>
|
||||
|
||||
class LevelLoader {
|
||||
{field} + levelsLoader: LevelsLoader
|
||||
{field} + audioSource: AudioSource
|
||||
{field} + progressionText: Text
|
||||
{field} - groundY: float
|
||||
|
||||
{method} - GetPrefab(type: string): GameObject
|
||||
{method} - LoadAudio()
|
||||
{method} - LoadElements()
|
||||
{method} + Start()
|
||||
{method} + Update()
|
||||
}
|
||||
LevelLoader o--> LevelsLoader : <<References>>
|
||||
LevelLoader *--> AudioSource : <<Owns>>
|
||||
LevelLoader --> Text : <<References>>
|
||||
|
||||
|
||||
class LevelEditor {
|
||||
{field} - currentBlock: GameObject
|
||||
{field} - isPlacingBlock: bool
|
||||
{field} - currentScale: Vector3
|
||||
{field} - scaleStep: float
|
||||
{field} + blockGroupContainer: Transform
|
||||
{field} + buttonPrefabTemplate: GameObject
|
||||
{field} - currentPage: Integer
|
||||
{field} - buttonsPerPage: Integer {constant}
|
||||
{field} - blockPrefabs: List<GameObject>
|
||||
{field} - currentButtons: List<GameObject>
|
||||
{field} - resizingTarget: GameObject
|
||||
{field} - isResizing: bool
|
||||
{field} - originalMousePos: Vector3
|
||||
{field} - originalScale: Vector3
|
||||
{field} - currentResizeAxis: ResizeAxis
|
||||
|
||||
{method} - Start()
|
||||
{method} - LoadPrefabs()
|
||||
{method} - GenerateButtons()
|
||||
{method} - ClearCurrentButtons()
|
||||
{method} + NextPage()
|
||||
{method} + PreviousPage()
|
||||
{method} - SelectPrefab(prefab: GameObject)
|
||||
{method} - Update()
|
||||
{method} - PlaceBlock()
|
||||
{method} - TrySnapToNearbyBlock()
|
||||
{method} - InstantiateAndPrepare(prefab: GameObject, scaleOverride: Vector3?)
|
||||
{method} - HandleBlockRotation()
|
||||
}
|
||||
LevelEditor o--> blockGroupContainer : <<References>>
|
||||
LevelEditor --> buttonPrefabTemplate : <<References>>
|
||||
LevelEditor *--> blockPrefabs : <<Owns>>
|
||||
LevelEditor *--> currentButtons : <<Owns>>
|
||||
LevelEditor o--> currentBlock : <<References>>
|
||||
LevelEditor o--> resizingTarget : <<References>>
|
||||
LevelEditor *--> ResizeAxis : <<Has>>
|
||||
|
||||
enum ResizeAxis <<enumeration>> {
|
||||
None
|
||||
Horizontal
|
||||
Vertical
|
||||
}
|
||||
|
||||
|
||||
class LevelElement {
|
||||
{field} + type: string
|
||||
{field} + x: float
|
||||
{field} + y: float
|
||||
{field} + scaleX: float
|
||||
{field} + scaleY: float
|
||||
}
|
||||
|
||||
class Level {
|
||||
{field} + {static} {readOnly} LAST_X: Integer = 15
|
||||
{field} + JsonName: string {get} {set}
|
||||
{field} + TotalJumps: Integer {get} {set}
|
||||
{field} + TotalAttempts: Integer {get} {set}
|
||||
{field} + ProgressionPercent: Integer {get} {set}
|
||||
{field} + ProgressionPercentMax: Integer {get} {set}
|
||||
{field} + name: string
|
||||
{field} + musicName: string
|
||||
{field} + order: Integer
|
||||
{field} + elements: List<LevelElement>
|
||||
{field} + LastX: float {get}
|
||||
|
||||
{method} + {static} CreateFromJSON(jsonString: string): Level
|
||||
}
|
||||
Level *--> LevelElement : <<Composed of>>
|
||||
|
||||
class JSONImporter {
|
||||
{field} + statusText: TMP_Text
|
||||
|
||||
{method} - Awake()
|
||||
{method} - Start()
|
||||
{method} + ImportJSON()
|
||||
{method} - ShowFileBrowser(): IEnumerator
|
||||
{method} - UpdateStatus(message: string, color: Color)
|
||||
}
|
||||
JSONImporter --> TMP_Text : <<References>>
|
||||
|
||||
class JSONExporter {
|
||||
{field} + statusText: TMP_Text
|
||||
{field} - editor: LevelEditor
|
||||
{field} - levelsFolder: string
|
||||
|
||||
{method} - Awake()
|
||||
{method} - Start()
|
||||
{method} + ExportJSON()
|
||||
{method} - ShowSaveDialog(): IEnumerator
|
||||
{method} - SetStatus(message: string, color: Color)
|
||||
}
|
||||
JSONExporter o--> LevelEditor : <<References>>
|
||||
JSONExporter --> TMP_Text : <<References>>
|
||||
|
||||
class SerializableElement <<private>> {
|
||||
{field} + type: string
|
||||
{field} + x: float
|
||||
{field} + y: float
|
||||
{field} + scaleX: float
|
||||
{field} + scaleY: float
|
||||
}
|
||||
JSONExporter ..> SerializableElement : <<Uses>>
|
||||
|
||||
class LevelData <<private>> {
|
||||
{field} + name: string
|
||||
{field} + musicName: string
|
||||
{field} + order: Integer
|
||||
{field} + elements: SerializableElement[*]
|
||||
}
|
||||
LevelData *--> SerializableElement : <<Composed of>>
|
||||
JSONExporter ..> LevelData : <<Uses>>
|
||||
|
||||
|
||||
interface IGameMode <<interface>> {
|
||||
{method} + Update(player: Player) {abstract}
|
||||
{method} + OnCollisionEnter(player: Player, collision: Collision2D) {abstract}
|
||||
{method} + OnCollisionExit(player: Player, collision: Collision2D) {abstract}
|
||||
}
|
||||
|
||||
class ShipGameMode implements IGameMode {
|
||||
{field} - HorizontalSpeed: float {constant}
|
||||
{field} - JumpForce: float {constant}
|
||||
{field} - JumpKey: KeyCode {constant}
|
||||
{field} - UpperAngle: float {constant}
|
||||
{field} - LowerAngle: float {constant}
|
||||
{field} - RotationTransitionDuration: float {constant}
|
||||
|
||||
{method} + Update(player: Player)
|
||||
{method} - GetCurrentZAngle(player: Player): float
|
||||
{method} - Jump(player: Player)
|
||||
{method} + OnCollisionEnter(player: Player, collision: Collision2D)
|
||||
{method} + OnCollisionExit(player: Player, collision: Collision2D)
|
||||
}
|
||||
ShipGameMode ..|> IGameMode
|
||||
ShipGameMode ..> Player : <<Uses>>
|
||||
|
||||
|
||||
class NormalGameMode implements IGameMode {
|
||||
{field} - HorizontalSpeed: float {constant}
|
||||
{field} - JumpForce: float {constant}
|
||||
{field} - JumpKey: KeyCode {constant}
|
||||
{field} - isRotating: bool
|
||||
{field} - targetRotationAngle: float
|
||||
{field} - rotationSpeed: float {readOnly}
|
||||
|
||||
{method} + Update(player: Player)
|
||||
{method} - Jump(player: Player)
|
||||
{method} - PerformRotation(player: Player)
|
||||
{method} - IsJumping(player: Player): bool
|
||||
{method} - AlignRotation(player: Player)
|
||||
{method} - UpdateParticlePositionAndRotation(player: Player)
|
||||
{method} + OnCollisionEnter(player: Player, collision: Collision2D)
|
||||
{method} + OnCollisionExit(player: Player, collision: Collision2D)
|
||||
}
|
||||
NormalGameMode ..|> IGameMode
|
||||
NormalGameMode ..> Player : <<Uses>>
|
||||
|
||||
|
||||
' Tags
|
||||
class ShipPortal { }
|
||||
class CubePortal { }
|
||||
class BonusBoostSpeed { }
|
||||
class BonusSlowSpeed { }
|
||||
class Kill { }
|
||||
class Win { }
|
||||
class Ground { }
|
||||
class WinnerWall { }
|
||||
class Block { }
|
||||
class SmallObstacle { }
|
||||
class Spike { }
|
||||
class Portal { }
|
||||
class Bonus { }
|
||||
|
||||
Player ..> ShipPortal : <<Uses Tag>>
|
||||
Player ..> CubePortal : <<Uses Tag>>
|
||||
Player ..> BonusBoostSpeed : <<Uses Tag>>
|
||||
Player ..> BonusSlowSpeed : <<Uses Tag>>
|
||||
ShipGameMode ..> Kill : <<Uses Tag>>
|
||||
ShipGameMode ..> Win : <<Uses Tag>>
|
||||
ShipGameMode ..> Ground : <<Uses Tag>>
|
||||
NormalGameMode ..> Kill : <<Uses Tag>>
|
||||
NormalGameMode ..> Win : <<Uses Tag>>
|
||||
LevelLoader ..> WinnerWall : <<Uses Prefab>>
|
||||
LevelLoader ..> Ground : <<Uses Prefab>>
|
||||
LevelEditor ..> Ground : <<Uses Tag>>
|
||||
LevelEditor ..> Block : <<Uses Tag>>
|
||||
LevelEditor ..> SmallObstacle : <<Uses Tag>>
|
||||
LevelEditor ..> Spike : <<Uses Tag>>
|
||||
LevelEditor ..> Portal : <<Uses Tag>>
|
||||
LevelEditor ..> Bonus : <<Uses Tag>>
|
||||
LevelsLoader ..> WinnerWall : <<Uses Prefab>>
|
||||
|
||||
@enduml
|
@ -5,581 +5,107 @@ skinparam classAttributeIconSize 0
|
||||
skinparam classFontStyle Bold
|
||||
hide enum methods
|
||||
|
||||
package UnityEngine {
|
||||
class GameObject {
|
||||
}
|
||||
class MonoBehaviour {
|
||||
}
|
||||
class Rigidbody2D {
|
||||
}
|
||||
class Transform {
|
||||
}
|
||||
class ParticleSystem {
|
||||
}
|
||||
class SpriteRenderer {
|
||||
}
|
||||
class Collider2D {
|
||||
}
|
||||
class Collision2D {
|
||||
}
|
||||
class Vector3 {
|
||||
}
|
||||
class Vector2 {
|
||||
}
|
||||
class Quaternion {
|
||||
}
|
||||
class Mathf {
|
||||
{method} + Lerp(...) {static}
|
||||
{method} + Round(...) {static}
|
||||
{method} + Clamp(...) {static}
|
||||
{method} + Sin(...) {static}
|
||||
{method} + Abs(...) {static}
|
||||
{method} + DeltaAngle(...) {static}
|
||||
{method} + MoveTowardsAngle(...) {static}
|
||||
{method} + RoundToInt(...) {static}
|
||||
}
|
||||
class Time {
|
||||
{method} + deltaTime: float {static} {readOnly}
|
||||
{method} + timeScale: float {static}
|
||||
}
|
||||
class Input {
|
||||
{method} + GetKey(...) {static}
|
||||
{method} + GetKeyDown(...) {static}
|
||||
{method} + GetMouseButtonDown(...) {static}
|
||||
{method} + GetMouseButtonUp(...) {static}
|
||||
{method} + GetAxis(...) {static}
|
||||
}
|
||||
class Camera {
|
||||
{method} + main: Camera {static} {readOnly}
|
||||
{method} + ScreenToWorldPoint(...)
|
||||
}
|
||||
class Physics2D {
|
||||
{method} + OverlapBoxAll(...) {static}
|
||||
{method} + RaycastAll(...) {static}
|
||||
{method} + OverlapPoint(...) {static}
|
||||
{method} + OverlapAreaAll(...) {static}
|
||||
}
|
||||
class Resources {
|
||||
{method} + Load<T>(...) {static}
|
||||
{method} + LoadAll<T>(...) {static}
|
||||
}
|
||||
class PlayerPrefs {
|
||||
{method} + GetFloat(...) {static}
|
||||
{method} + SetFloat(...) {static}
|
||||
{method} + HasKey(...) {static}
|
||||
}
|
||||
class AudioSource {
|
||||
{method} + volume: float
|
||||
{method} + clip: AudioClip
|
||||
{method} + Play()
|
||||
{method} + Pause()
|
||||
}
|
||||
class AudioClip {
|
||||
}
|
||||
class Slider {
|
||||
}
|
||||
class Button {
|
||||
}
|
||||
class Image {
|
||||
}
|
||||
class RectTransform {
|
||||
}
|
||||
class Bounds {
|
||||
}
|
||||
class Debug {
|
||||
{method} + Log(...) {static}
|
||||
{method} + LogWarning(...) {static}
|
||||
{method} + LogError(...) {static}
|
||||
}
|
||||
class Application {
|
||||
{method} + persistentDataPath: string {static} {readOnly}
|
||||
{method} + dataPath: string {static} {readOnly}
|
||||
{method} + Quit() {static}
|
||||
}
|
||||
class Canvas {
|
||||
{method} + ForceUpdateCanvases() {static}
|
||||
}
|
||||
class UnityEngine.Object {
|
||||
{method} + FindAnyObjectByType<T>(...) {static}
|
||||
}
|
||||
class Renderer {
|
||||
}
|
||||
}
|
||||
|
||||
package UnityEngine.SceneManagement {
|
||||
class SceneManager {
|
||||
{method} + LoadScene(...) {static}
|
||||
{method} + LoadSceneAsync(...) {static}
|
||||
{method} + GetActiveScene(...) {static}
|
||||
}
|
||||
}
|
||||
|
||||
package UnityEngine.UI {
|
||||
class Text {
|
||||
}
|
||||
}
|
||||
|
||||
package TMPro {
|
||||
class TMP_Text {
|
||||
}
|
||||
}
|
||||
|
||||
package System {
|
||||
package IO {
|
||||
class Path {
|
||||
{method} + Combine(...) {static}
|
||||
{method} + GetFileNameWithoutExtension(...) {static}
|
||||
}
|
||||
class File {
|
||||
{method} + Exists(...) {static}
|
||||
{method} + ReadAllText(...) {static}
|
||||
{method} + WriteAllText(...) {static}
|
||||
{method} + Copy(...) {static}
|
||||
{method} + GetExtension(...) {static}
|
||||
{method} + GetFileName(...) {static}
|
||||
{method} + GetFileNameWithoutExtension(...) {static}
|
||||
}
|
||||
class Directory {
|
||||
{method} + Exists(...) {static}
|
||||
{method} + CreateDirectory(...) {static}
|
||||
}
|
||||
}
|
||||
package Collections {
|
||||
class IEnumerator {
|
||||
}
|
||||
package Generic {
|
||||
class List<T> {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
package SimpleFileBrowser {
|
||||
class FileBrowser {
|
||||
{method} + WaitForLoadDialog(...) {static}
|
||||
{method} + WaitForSaveDialog(...) {static}
|
||||
{method} + Success: bool {static} {readOnly}
|
||||
{method} + Result: string[*] {static} {readOnly}
|
||||
{method} + PickMode: enumeration {static} {readOnly}
|
||||
}
|
||||
}
|
||||
|
||||
class PlayerCamera {
|
||||
{field} + playerObject: UnityEngine.GameObject
|
||||
{field} + normalMinYFollow: float
|
||||
{field} + shipMinYFollow: float
|
||||
{field} + smoothSpeed: float
|
||||
{field} - initialY: float
|
||||
{field} + isPlaying: bool
|
||||
|
||||
{method} - Start()
|
||||
{method} - Update()
|
||||
}
|
||||
PlayerCamera --|> UnityEngine.MonoBehaviour
|
||||
PlayerCamera --> UnityEngine.GameObject : <<References>>
|
||||
PlayerCamera ..> UnityEngine.Mathf : <<Uses>>
|
||||
PlayerCamera ..> UnityEngine.Time : <<Uses>>
|
||||
PlayerCamera ..> Player : <<Uses>>
|
||||
PlayerCamera ..> ShipGameMode : <<Uses>>
|
||||
PlayerCamera ..> UnityEngine.Transform : <<Uses>>
|
||||
PlayerCamera ..> UnityEngine.Vector3 : <<Uses>>
|
||||
|
||||
class Player {
|
||||
{field} + RigidBody: UnityEngine.Rigidbody2D {get} {private set}
|
||||
{field} + Transform: UnityEngine.Transform {get} {private set}
|
||||
{field} + Particle: UnityEngine.ParticleSystem {get} {private set}
|
||||
{field} + LevelsLoader: LevelsLoader {get} {set}
|
||||
{field} + SpriteRenderer: UnityEngine.SpriteRenderer {get} {private set}
|
||||
{field} + IsColliding: bool {get} {set}
|
||||
{field} + HasStarted: bool {get} {set}
|
||||
{field} + CanJump: bool {get} {set}
|
||||
{field} + CurrentGameMode: IGameMode {get} {set}
|
||||
{field} + SpeedMultiplier: float
|
||||
|
||||
{method} + Awake()
|
||||
{method} + Start()
|
||||
{method} + Update()
|
||||
{method} + OnCollisionEnter2D(collision: UnityEngine.Collision2D)
|
||||
{method} + OnCollisionExit2D(collision: UnityEngine.Collision2D)
|
||||
{method} + OnTriggerEnter2D(collision: UnityEngine.Collider2D)
|
||||
{method} + ChangeGameMode(newMode: IGameMode)
|
||||
}
|
||||
Player --|> UnityEngine.MonoBehaviour
|
||||
Player *--> UnityEngine.Rigidbody2D : <<Owns>>
|
||||
Player *--> UnityEngine.Transform : <<Owns>>
|
||||
Player *--> UnityEngine.ParticleSystem : <<Owns>>
|
||||
Player o--> LevelsLoader : <<References>>
|
||||
Player *--> UnityEngine.SpriteRenderer : <<Owns>>
|
||||
Player o--> IGameMode : <<Has>>
|
||||
Player ..> UnityEngine.Resources : <<Uses>>
|
||||
Player ..> UnityEngine.Debug : <<Uses>>
|
||||
Player ..> ShipPortal : <<Uses>>
|
||||
Player ..> CubePortal : <<Uses>>
|
||||
Player ..> BonusBoostSpeed : <<Uses>>
|
||||
Player ..> BonusSlowSpeed : <<Uses>>
|
||||
Player ..> NormalGameMode : <<Uses>>
|
||||
Player ..> UnityEngine.Collision2D : <<Uses>>
|
||||
Player ..> UnityEngine.Collider2D : <<Uses>>
|
||||
|
||||
class PauseMenu {
|
||||
{field} + pauseMenu: UnityEngine.GameObject
|
||||
{field} + pauseButton: UnityEngine.GameObject
|
||||
{field} + levelLoader: LevelLoader
|
||||
{field} + volumeSlider: UnityEngine.UI.Slider
|
||||
|
||||
{method} + Start()
|
||||
{method} + ChangeVolume()
|
||||
{method} + Pause()
|
||||
{method} + Home()
|
||||
{method} + Resume()
|
||||
}
|
||||
PauseMenu --|> UnityEngine.MonoBehaviour
|
||||
PauseMenu --> UnityEngine.GameObject : <<References>>
|
||||
PauseMenu --> LevelLoader : <<References>>
|
||||
PauseMenu --> UnityEngine.UI.Slider : <<References>>
|
||||
PauseMenu ..> UnityEngine.PlayerPrefs : <<Uses>>
|
||||
PauseMenu ..> UnityEngine.Time : <<Uses>>
|
||||
PauseMenu ..> UnityEngine.SceneManagement.SceneManager : <<Uses>>
|
||||
|
||||
class MainMenu {
|
||||
{method} + LaunchGame()
|
||||
{method} + OpenImport()
|
||||
{method} + QuitGame()
|
||||
{method} + LevelEditor()
|
||||
{method} + EditorChoice()
|
||||
{method} + CreateLevel()
|
||||
}
|
||||
MainMenu --|> UnityEngine.MonoBehaviour
|
||||
MainMenu ..> UnityEngine.SceneManagement.SceneManager : <<Uses>>
|
||||
MainMenu ..> UnityEngine.Application : <<Uses>>
|
||||
|
||||
class LevelStat {
|
||||
{field} + JsonName: string {get} {set}
|
||||
{field} + totalJumps: Integer
|
||||
{field} + totalAttempts: Integer
|
||||
{field} + progressionPercent: Integer
|
||||
|
||||
{method} + {static} CreateFromJSON(jsonString: string): LevelStat
|
||||
}
|
||||
LevelStat ..> UnityEngine.JsonUtility : <<Uses>>
|
||||
|
||||
class LevelsLoader {
|
||||
{field} + levels: System.Collections.Generic.List<Level>
|
||||
{field} + levelCurrent: Level
|
||||
|
||||
{method} - Start()
|
||||
{method} - LoadAllLevels()
|
||||
{method} - SaveLevelCurrent()
|
||||
{method} + NextLevel()
|
||||
{method} + PreviousLevel()
|
||||
{method} + IncreaseTotalJumps()
|
||||
{method} + IncreaseTotalAttempts()
|
||||
{method} + CalculateCurrentProgressionPercent(playerPosition: UnityEngine.Vector3): Integer
|
||||
{method} + RefreshLevels()
|
||||
}
|
||||
LevelsLoader --|> UnityEngine.MonoBehaviour
|
||||
LevelsLoader *--> Level : <<Owns>>
|
||||
LevelsLoader ..> UnityEngine.TextAsset : <<Uses>>
|
||||
LevelsLoader ..> UnityEngine.Resources : <<Uses>>
|
||||
LevelsLoader ..> System.IO.Path : <<Uses>>
|
||||
LevelsLoader ..> UnityEngine.Application : <<Uses>>
|
||||
LevelsLoader ..> System.IO.File : <<Uses>>
|
||||
LevelsLoader ..> UnityEngine.JsonUtility : <<Uses>>
|
||||
LevelsLoader ..> LevelStat : <<Uses>>
|
||||
LevelsLoader ..> UnityEngine.Vector3 : <<Uses>>
|
||||
LevelsLoader ..> UnityEngine.Mathf : <<Uses>>
|
||||
LevelsLoader ..> WinnerWall : <<Uses>>
|
||||
LevelsLoader ..> UnityEngine.GameObject : <<Uses>>
|
||||
LevelsLoader ..> UnityEngine.Renderer : <<Uses>>
|
||||
LevelsLoader ..> System.Collections.Generic.List : <<Uses>>
|
||||
|
||||
class LevelLoader {
|
||||
{field} + levelsLoader: LevelsLoader
|
||||
{field} + audioSource: UnityEngine.AudioSource
|
||||
{field} + progressionText: UnityEngine.UI.Text
|
||||
{field} - groundY: float
|
||||
|
||||
{method} - GetPrefab(type: string): UnityEngine.GameObject
|
||||
{method} - LoadAudio()
|
||||
{method} - LoadElements()
|
||||
{method} + Start()
|
||||
{method} + Update()
|
||||
}
|
||||
LevelLoader --|> UnityEngine.MonoBehaviour
|
||||
LevelLoader o--> LevelsLoader : <<References>>
|
||||
LevelLoader *--> UnityEngine.AudioSource : <<Owns>>
|
||||
LevelLoader --> UnityEngine.UI.Text : <<References>>
|
||||
LevelLoader ..> System.IO.Path : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.Resources : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.PlayerPrefs : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.GameObject : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.Vector3 : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.Quaternion : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.Transform : <<Uses>>
|
||||
LevelLoader ..> WinnerWall : <<Uses>>
|
||||
LevelLoader ..> Level : <<Uses>>
|
||||
LevelLoader ..> Ground : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.AudioClip : <<Uses>>
|
||||
LevelLoader ..> UnityEngine.Renderer : <<Uses>>
|
||||
|
||||
class LevelEditor {
|
||||
{field} - currentBlock: UnityEngine.GameObject
|
||||
{field} - isPlacingBlock: bool
|
||||
{field} - currentScale: UnityEngine.Vector3
|
||||
{field} - scaleStep: float
|
||||
{field} + blockGroupContainer: UnityEngine.Transform
|
||||
{field} + buttonPrefabTemplate: UnityEngine.GameObject
|
||||
{field} - currentPage: Integer
|
||||
{field} - buttonsPerPage: Integer {constant}
|
||||
{field} - blockPrefabs: System.Collections.Generic.List<UnityEngine.GameObject>
|
||||
{field} - currentButtons: System.Collections.Generic.List<UnityEngine.GameObject>
|
||||
{field} - resizingTarget: UnityEngine.GameObject
|
||||
{field} - isResizing: bool
|
||||
{field} - originalMousePos: UnityEngine.Vector3
|
||||
{field} - originalScale: UnityEngine.Vector3
|
||||
{field} - currentResizeAxis: ResizeAxis
|
||||
|
||||
{method} - Start()
|
||||
{method} - LoadPrefabs()
|
||||
{method} - GenerateButtons()
|
||||
{method} - ClearCurrentButtons()
|
||||
{method} + NextPage()
|
||||
{method} + PreviousPage()
|
||||
{method} - SelectPrefab(prefab: UnityEngine.GameObject)
|
||||
{method} - Update()
|
||||
{method} - PlaceBlock()
|
||||
{method} - TrySnapToNearbyBlock()
|
||||
{method} - InstantiateAndPrepare(prefab: UnityEngine.GameObject, scaleOverride: UnityEngine.Vector3?)
|
||||
{method} - HandleBlockRotation()
|
||||
}
|
||||
LevelEditor --|> UnityEngine.MonoBehaviour
|
||||
LevelEditor o--> blockGroupContainer : <<References>>
|
||||
LevelEditor --> buttonPrefabTemplate : <<References>>
|
||||
LevelEditor *--> blockPrefabs : <<Owns>>
|
||||
LevelEditor *--> currentButtons : <<Owns>>
|
||||
LevelEditor o--> currentBlock : <<References>>
|
||||
LevelEditor o--> resizingTarget : <<References>>
|
||||
LevelEditor ..> UnityEngine.GameObject : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Vector3 : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Mathf : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Input : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Camera : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Physics2D : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Collider2D : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Bounds : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.SpriteRenderer : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.UI.Button : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.UI.Image : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.RectTransform : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Debug : <<Uses>>
|
||||
LevelEditor ..> System.Collections.Generic.List : <<Uses>>
|
||||
LevelEditor ..> UnityEngine.Resources : <<Uses>>
|
||||
LevelEditor ..> Player : <<Uses>> ' (via tags)
|
||||
LevelEditor ..> Ground : <<Uses>> ' (via tags)
|
||||
LevelEditor ..> Portal : <<Uses>> ' (via tags)
|
||||
LevelEditor ..> SmallObstacle : <<Uses>> ' (via tags)
|
||||
LevelEditor ..> Spike : <<Uses>> ' (via tags)
|
||||
LevelEditor ..> Block : <<Uses>> ' (via tags)
|
||||
LevelEditor ..> Bonus : <<Uses>> ' (via tags)
|
||||
|
||||
enum ResizeAxis <<enumeration>> {
|
||||
None
|
||||
Horizontal
|
||||
Vertical
|
||||
}
|
||||
LevelEditor *--> ResizeAxis : <<Has>>
|
||||
|
||||
class LevelElement {
|
||||
{field} + type: string
|
||||
{field} + x: float
|
||||
{field} + y: float
|
||||
{field} + scaleX: float
|
||||
{field} + scaleY: float
|
||||
class GameManager {
|
||||
- score: int
|
||||
- isPaused: Boolean
|
||||
+ StartGame()
|
||||
+ RestartLevel()
|
||||
+ PauseGame()
|
||||
+ ResumeGame()
|
||||
+ UpdateScore(points: int)
|
||||
}
|
||||
|
||||
class Level {
|
||||
{field} + {static} {readOnly} LAST_X: Integer = 15
|
||||
{field} + JsonName: string {get} {set}
|
||||
{field} + TotalJumps: Integer {get} {set}
|
||||
{field} + TotalAttempts: Integer {get} {set}
|
||||
{field} + ProgressionPercent: Integer {get} {set}
|
||||
{field} + ProgressionPercentMax: Integer {get} {set}
|
||||
{field} + name: string
|
||||
{field} + musicName: string
|
||||
{field} + order: Integer
|
||||
{field} + elements: System.Collections.Generic.List<LevelElement>
|
||||
{field} + LastX: float {get}
|
||||
|
||||
{method} + {static} CreateFromJSON(jsonString: string): Level
|
||||
}
|
||||
Level *--> LevelElement : <<Composed of>>
|
||||
Level ..> UnityEngine.JsonUtility : <<Uses>>
|
||||
Level ..> System.Collections.Generic.List : <<Uses>>
|
||||
|
||||
class JSONImporter {
|
||||
{field} + statusText: TMPro.TMP_Text
|
||||
|
||||
{method} - Awake()
|
||||
{method} - Start()
|
||||
{method} + ImportJSON()
|
||||
{method} - ShowFileBrowser(): System.Collections.IEnumerator
|
||||
{method} - UpdateStatus(message: string, color: UnityEngine.Color)
|
||||
}
|
||||
JSONImporter --|> UnityEngine.MonoBehaviour
|
||||
JSONImporter --> TMPro.TMP_Text : <<References>>
|
||||
JSONImporter ..> System.Collections.IEnumerator : <<Uses>>
|
||||
JSONImporter ..> SimpleFileBrowser.FileBrowser : <<Uses>>
|
||||
JSONImporter ..> System.IO.Path : <<Uses>>
|
||||
JSONImporter ..> System.IO.File : <<Uses>>
|
||||
JSONImporter ..> UnityEngine.Color : <<Uses>>
|
||||
JSONImporter ..> LevelsLoader : <<Uses>>
|
||||
JSONImporter ..> UnityEngine.Object : <<Uses>>
|
||||
JSONImporter ..> UnityEngine.Canvas : <<Uses>>
|
||||
JSONImporter ..> UnityEngine.SceneManagement.SceneManager : <<Uses>>
|
||||
|
||||
class JSONExporter {
|
||||
{field} + statusText: TMPro.TMP_Text
|
||||
{field} - editor: LevelEditor
|
||||
{field} - levelsFolder: string
|
||||
|
||||
{method} - Awake()
|
||||
{method} - Start()
|
||||
{method} + ExportJSON()
|
||||
{method} - ShowSaveDialog(): System.Collections.IEnumerator
|
||||
{method} - SetStatus(message: string, color: UnityEngine.Color)
|
||||
}
|
||||
JSONExporter --|> UnityEngine.MonoBehaviour
|
||||
JSONExporter o--> LevelEditor : <<References>>
|
||||
JSONExporter --> TMPro.TMP_Text : <<References>>
|
||||
JSONExporter ..> System.Collections.IEnumerator : <<Uses>>
|
||||
JSONExporter ..> System.Collections.Generic.List : <<Uses>>
|
||||
JSONExporter ..> SimpleFileBrowser.FileBrowser : <<Uses>>
|
||||
JSONExporter ..> System.IO.Path : <<Uses>>
|
||||
JSONExporter ..> System.IO.File : <<Uses>>
|
||||
JSONExporter ..> System.IO.Directory : <<Uses>>
|
||||
JSONExporter ..> UnityEngine.Collider2D : <<Uses>>
|
||||
JSONExporter ..> UnityEngine.Object : <<Uses>>
|
||||
JSONExporter ..> UnityEngine.Vector3 : <<Uses>>
|
||||
JSONExporter ..> UnityEngine.Mathf : <<Uses>>
|
||||
JSONExporter ..> UnityEngine.JsonUtility : <<Uses>>
|
||||
JSONExporter ..> UnityEngine.Color : <<Uses>>
|
||||
JSONExporter ..> LevelsLoader : <<Uses>>
|
||||
JSONExporter ..> UnityEngine.Canvas : <<Uses>>
|
||||
|
||||
class SerializableElement <<private>> {
|
||||
{field} + type: string
|
||||
{field} + x: float
|
||||
{field} + y: float
|
||||
{field} + scaleX: float
|
||||
{field} + scaleY: float
|
||||
}
|
||||
JSONExporter ..> SerializableElement : <<Uses>>
|
||||
|
||||
class LevelData <<private>> {
|
||||
{field} + name: string
|
||||
{field} + musicName: string
|
||||
{field} + order: Integer
|
||||
{field} + elements: SerializableElement[*]
|
||||
}
|
||||
LevelData *--> SerializableElement : <<Composed of>>
|
||||
JSONExporter ..> LevelData : <<Uses>>
|
||||
|
||||
|
||||
interface IGameMode <<interface>> {
|
||||
{method} + Update(player: Player) {abstract}
|
||||
{method} + OnCollisionEnter(player: Player, collision: UnityEngine.Collision2D) {abstract}
|
||||
{method} + OnCollisionExit(player: Player, collision: UnityEngine.Collision2D) {abstract}
|
||||
- name: String
|
||||
- musicName: String
|
||||
+ StartLevel()
|
||||
+ EndLevel()
|
||||
+ CheckCompletion(): Boolean
|
||||
}
|
||||
|
||||
class ShipGameMode implements IGameMode {
|
||||
{field} - HorizontalSpeed: float {constant}
|
||||
{field} - JumpForce: float {constant}
|
||||
{field} - JumpKey: UnityEngine.KeyCode {constant}
|
||||
{field} - UpperAngle: float {constant}
|
||||
{field} - LowerAngle: float {constant}
|
||||
{field} - RotationTransitionDuration: float {constant}
|
||||
|
||||
{method} + Update(player: Player)
|
||||
{method} - GetCurrentZAngle(player: Player): float
|
||||
{method} - Jump(player: Player)
|
||||
{method} + OnCollisionEnter(player: Player, collision: UnityEngine.Collision2D)
|
||||
{method} + OnCollisionExit(player: Player, collision: UnityEngine.Collision2D)
|
||||
abstract class LevelElement {
|
||||
- x: Float
|
||||
- y: Float
|
||||
}
|
||||
ShipGameMode ..|> IGameMode
|
||||
ShipGameMode ..> Player : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.Vector2 : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.Input : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.KeyCode : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.Mathf : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.Time : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.Quaternion : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.SceneManagement.SceneManager : <<Uses>>
|
||||
ShipGameMode ..> UnityEngine.Collision2D : <<Uses>>
|
||||
ShipGameMode ..> LevelsLoader : <<Uses>>
|
||||
|
||||
class NormalGameMode implements IGameMode {
|
||||
{field} - HorizontalSpeed: float {constant}
|
||||
{field} - JumpForce: float {constant}
|
||||
{field} - JumpKey: UnityEngine.KeyCode {constant}
|
||||
{field} - isRotating: bool
|
||||
{field} - targetRotationAngle: float
|
||||
{field} - rotationSpeed: float {readOnly}
|
||||
|
||||
{method} + Update(player: Player)
|
||||
{method} - Jump(player: Player)
|
||||
{method} - PerformRotation(player: Player)
|
||||
{method} - IsJumping(player: Player): bool
|
||||
{method} - AlignRotation(player: Player)
|
||||
{method} - UpdateParticlePositionAndRotation(player: Player)
|
||||
{method} + OnCollisionEnter(player: Player, collision: UnityEngine.Collision2D)
|
||||
{method} + OnCollisionExit(player: Player, collision: UnityEngine.Collision2D)
|
||||
abstract class Obstacle extends LevelElement {
|
||||
+ TriggerEffect(player: Player)
|
||||
}
|
||||
NormalGameMode ..|> IGameMode
|
||||
NormalGameMode ..> Player : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.Vector2 : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.Input : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.KeyCode : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.Mathf : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.Time : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.Quaternion : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.SceneManagement.SceneManager : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.Collision2D : <<Uses>>
|
||||
NormalGameMode ..> LevelsLoader : <<Uses>>
|
||||
NormalGameMode ..> UnityEngine.Vector3 : <<Uses>>
|
||||
|
||||
class Platform extends LevelElement {
|
||||
}
|
||||
|
||||
' Tags
|
||||
class ShipPortal { }
|
||||
class CubePortal { }
|
||||
class BonusBoostSpeed { }
|
||||
class BonusSlowSpeed { }
|
||||
class Kill { }
|
||||
class Win { }
|
||||
class Ground { }
|
||||
class WinnerWall { }
|
||||
class Block { }
|
||||
class SmallObstacle { }
|
||||
class Spike { }
|
||||
class Portal { }
|
||||
class Bonus { }
|
||||
class Spike extends Obstacle {
|
||||
+ TriggerEffect(player: Player)
|
||||
}
|
||||
|
||||
Player ..> ShipPortal : <<Uses Tag>>
|
||||
Player ..> CubePortal : <<Uses Tag>>
|
||||
Player ..> BonusBoostSpeed : <<Uses Tag>>
|
||||
Player ..> BonusSlowSpeed : <<Uses Tag>>
|
||||
ShipGameMode ..> Kill : <<Uses Tag>>
|
||||
ShipGameMode ..> Win : <<Uses Tag>>
|
||||
ShipGameMode ..> Ground : <<Uses Tag>>
|
||||
NormalGameMode ..> Kill : <<Uses Tag>>
|
||||
NormalGameMode ..> Win : <<Uses Tag>>
|
||||
LevelLoader ..> WinnerWall : <<Uses Prefab>>
|
||||
LevelLoader ..> Ground : <<Uses Prefab>>
|
||||
LevelEditor ..> Ground : <<Uses Tag>>
|
||||
LevelEditor ..> Block : <<Uses Tag>>
|
||||
LevelEditor ..> SmallObstacle : <<Uses Tag>>
|
||||
LevelEditor ..> Spike : <<Uses Tag>>
|
||||
LevelEditor ..> Portal : <<Uses Tag>>
|
||||
LevelEditor ..> Bonus : <<Uses Tag>>
|
||||
LevelsLoader ..> WinnerWall : <<Uses Prefab>>
|
||||
class Portal extends LevelElement {
|
||||
- destination: Vector2
|
||||
- type: PortalType
|
||||
+ Teleport(player: Player)
|
||||
}
|
||||
|
||||
enum PortalType {
|
||||
Normal, Gravity, Speed
|
||||
}
|
||||
|
||||
class Bumper extends LevelElement {
|
||||
- bounceForce: Float
|
||||
+ Bounce(player: Player)
|
||||
}
|
||||
|
||||
class LevelEnd extends LevelElement {
|
||||
+ TriggerEndGame()
|
||||
}
|
||||
|
||||
class Collectible extends LevelElement {
|
||||
- points: int
|
||||
+ Collect(player: Player)
|
||||
}
|
||||
|
||||
class Player {
|
||||
- JUMP_FORCE: static const Float = 26.6581
|
||||
- SPEED: static const Float = 8.6
|
||||
- rigidBody: Rigidbody2D
|
||||
- isColliding: Boolean
|
||||
- isGrounded: Boolean
|
||||
- gravityScale: Float
|
||||
+ Jump()
|
||||
+ IsJumping(): Boolean
|
||||
+ OnCollisionEnter2D(collision: Collision2D)
|
||||
+ OnCollisionExit2D(collision: Collision2D)
|
||||
+ ChangeGravity()
|
||||
+ Die()
|
||||
+ Respawn()
|
||||
+ CollectItem(item: Collectible)
|
||||
}
|
||||
|
||||
class LevelLoader {
|
||||
+ LoadLevel(jsonPath: String): Level
|
||||
+ UnloadLevel(level: Level)
|
||||
}
|
||||
|
||||
class LevelParser {
|
||||
+ ParseJSON(jsonData: String): Level
|
||||
}
|
||||
|
||||
class MusicManager {
|
||||
- currentTrack: String
|
||||
- volume: Float
|
||||
+ PlayMusic(musicPath: String)
|
||||
+ StopMusic()
|
||||
+ SetVolume(level: Float)
|
||||
}
|
||||
|
||||
GameManager *--> Level : <<Manages>>
|
||||
GameManager --> LevelLoader : <<Uses>>
|
||||
LevelLoader --> LevelParser : <<Uses>>
|
||||
Level *--> LevelElement : <<Contains>>
|
||||
GameManager *--> Player : <<Owns>>
|
||||
GameManager --> MusicManager : <<Controls>>
|
||||
Player --> LevelEnd : <<Triggers>>
|
||||
Player --> Portal : <<Interacts>>
|
||||
Player --> Collectible : <<Collects>>
|
||||
Obstacle --> Player : <<Affects>>
|
||||
|
||||
@enduml
|
||||
|
@ -1,4 +1,4 @@
|
||||
@startuml Geometry Dash - Diagramme d'états du joueur
|
||||
@startuml Geometry Dash - Diagramme d'etats du joueur
|
||||
|
||||
start
|
||||
|
||||
@ -16,6 +16,12 @@ repeat
|
||||
switch (Forme)
|
||||
case (Forme fusée)
|
||||
:Mode fusée;
|
||||
case (Forme roue)
|
||||
:Mode roue;
|
||||
case (Forme sens inversé)
|
||||
:Mode sens inversé;
|
||||
case (Forme gravité inversée)
|
||||
:Mode gravité inversée;
|
||||
endswitch
|
||||
if (Le joueur percute un obstacle ?) then (Oui)
|
||||
:Le joueur meurt;
|
||||
@ -32,8 +38,8 @@ repeat
|
||||
:Le joueur meurt;
|
||||
stop
|
||||
endif
|
||||
case (Temps accéléré)
|
||||
:Activer accélération du temps;
|
||||
case (Annulation d'obstacle)
|
||||
:Supprimer tous les obstacles;
|
||||
:Durée : 3 secondes;
|
||||
endswitch
|
||||
}
|
@ -4,64 +4,100 @@ left to right direction
|
||||
|
||||
actor Joueur as Joueur
|
||||
|
||||
|
||||
rectangle "Menu principal" {
|
||||
usecase "Configurer les paramètres" as ConfigurerParametres
|
||||
usecase "Accéder à la sélection des niveaux" as SelectionNiveau
|
||||
usecase "Accéder à l'éditeur de niveau" as EditeurNiveau
|
||||
usecase "Importer un niveau" as ImporterNiveau
|
||||
usecase "Quitter le jeu" as QuitterJeu
|
||||
usecase "Accéder à l'éditeur de cartes" as EditeurCartes
|
||||
usecase "Consulter les statistiques" as ConsulterStats
|
||||
usecase "Voir les trophées et récompenses" as VoirTrophees
|
||||
}
|
||||
|
||||
rectangle "Sélection des niveaux" {
|
||||
usecase "Parcourir les niveaux disponibles (passer au niveau suivant ou précédent)" as ParcourirNiveaux
|
||||
usecase "Afficher les statistiques d'un niveau (nombre d'essais, nombre de sauts et progression record)" as AfficherDetailsNiveau
|
||||
usecase "Parcourir les niveaux disponibles" as ParcourirNiveaux
|
||||
usecase "Afficher les détails d'un niveau" as AfficherDetailsNiveau
|
||||
usecase "Commencer un niveau" as CommencerNiveau
|
||||
}
|
||||
|
||||
rectangle "Pendant un niveau" {
|
||||
usecase "Appuyer sur la barre d'espace" as Sauter
|
||||
usecase "Voir la progression dans le niveau" as VoirProgression
|
||||
usecase "Sauter" as Sauter
|
||||
usecase "Mettre le jeu en pause" as MettrePause
|
||||
}
|
||||
|
||||
rectangle "Paramètres" {
|
||||
usecase "Régler le volume du jeu" as ReglerVolume
|
||||
usecase "Changer la musique de fond" as ChangerMusique
|
||||
usecase "Lire les instructions d'aide" as LireAide
|
||||
}
|
||||
|
||||
rectangle "Création de cartes" {
|
||||
usecase "Créer une nouvelle carte" as CreerNouvelleCarte
|
||||
usecase "Modifier une carte existante" as ModifierCarte
|
||||
usecase "Tester une carte" as TesterCarte
|
||||
usecase "Partager une carte" as PartagerCarte
|
||||
usecase "Télécharger des cartes de la communauté" as TelechargerCartes
|
||||
}
|
||||
|
||||
rectangle "Statistiques" {
|
||||
usecase "Afficher les statistiques globales" as AfficherStatsGlobales
|
||||
usecase "Afficher les statistiques de session" as AfficherStatsSession
|
||||
}
|
||||
|
||||
rectangle "Trophées et récompenses" {
|
||||
usecase "Voir les trophées débloqués" as VoirTropheesDebloques
|
||||
usecase "Voir les pièces collectées" as VoirPieces
|
||||
}
|
||||
|
||||
rectangle "Menu Pause" {
|
||||
usecase "Continuer" as Continuer
|
||||
usecase "Revenir au menu principal" as RevenirMenuPrincipal
|
||||
usecase "Régler le volume de la musique" as ReglerVolumeMusique
|
||||
usecase "Voir le nombre d'essais, nombre de sauts et progression record" as StatistiquesNiveau
|
||||
}
|
||||
|
||||
rectangle "Création de niveaux" {
|
||||
usecase "Créer un nouveau niveau" as CreerNouveauNiveau
|
||||
usecase "Modifier un niveau existant" as ModifierNiveau
|
||||
usecase "Tester un niveau" as TesterNiveau
|
||||
usecase "Exporter un niveau" as ExporterNiveau
|
||||
usecase "Redémarrer la partie" as RedemarrerPartie
|
||||
usecase "Retour à la sélection des maps" as RetourSelection
|
||||
}
|
||||
|
||||
Joueur --> ConfigurerParametres : <<extends>>
|
||||
Joueur --> SelectionNiveau : <<extends>>
|
||||
Joueur --> EditeurNiveau : <<extends>>
|
||||
Joueur --> ImporterNiveau : <<extends>>
|
||||
Joueur --> QuitterJeu : <<extends>>
|
||||
Joueur --> EditeurCartes : <<extends>>
|
||||
Joueur --> ConsulterStats : <<extends>>
|
||||
Joueur --> VoirTrophees : <<extends>>
|
||||
|
||||
SelectionNiveau --> AfficherDetailsNiveau : <<include>>
|
||||
SelectionNiveau --> ParcourirNiveaux : <<extends>>
|
||||
SelectionNiveau --> CommencerNiveau : <<extends>>
|
||||
SelectionNiveau --> ParcourirNiveaux : <<include>>
|
||||
ParcourirNiveaux --> AfficherDetailsNiveau : <<extends>>
|
||||
ParcourirNiveaux --> CommencerNiveau : <<extends>>
|
||||
|
||||
CommencerNiveau --> Sauter : <<extends>>
|
||||
CommencerNiveau --> VoirProgression : <<include>>
|
||||
CommencerNiveau --> MettrePause : <<extends>>
|
||||
|
||||
ConfigurerParametres --> ReglerVolume : <<extends>>
|
||||
ConfigurerParametres --> ChangerMusique : <<extends>>
|
||||
ConfigurerParametres --> LireAide : <<extends>>
|
||||
|
||||
EditeurCartes --> CreerNouvelleCarte : <<extends>>
|
||||
EditeurCartes --> ModifierCarte : <<extends>>
|
||||
EditeurCartes --> TelechargerCartes : <<extends>>
|
||||
CreerNouvelleCarte --> TesterCarte : <<extends>>
|
||||
ModifierCarte --> TesterCarte : <<extends>>
|
||||
CreerNouvelleCarte --> PartagerCarte : <<extends>>
|
||||
ModifierCarte --> PartagerCarte : <<extends>>
|
||||
|
||||
TesterCarte--> Sauter : <<extends>>
|
||||
TesterCarte--> MettrePause : <<extends>>
|
||||
|
||||
ConsulterStats --> AfficherStatsGlobales : <<extends>>
|
||||
ConsulterStats --> AfficherStatsSession : <<extends>>
|
||||
|
||||
VoirTrophees --> VoirTropheesDebloques : <<extends>>
|
||||
VoirTrophees --> VoirPieces : <<extends>>
|
||||
|
||||
MettrePause --> Continuer : <<extends>>
|
||||
MettrePause --> RevenirMenuPrincipal : <<extends>>
|
||||
MettrePause --> ReglerVolumeMusique : <<extends>>
|
||||
MettrePause --> StatistiquesNiveau : <<include>>
|
||||
MettrePause --> RedemarrerPartie : <<extends>>
|
||||
MettrePause --> RetourSelection : <<extends>>
|
||||
|
||||
EditeurNiveau --> CreerNouveauNiveau : <<extends>>
|
||||
EditeurNiveau --> ModifierNiveau : <<extends>>
|
||||
RedemarrerPartie --> Sauter : <<extends>>
|
||||
RedemarrerPartie --> MettrePause : <<extends>>
|
||||
|
||||
CreerNouveauNiveau --> TesterNiveau : <<extends>>
|
||||
ModifierNiveau --> TesterNiveau : <<extends>>
|
||||
Continuer --> Sauter : <<extends>>
|
||||
Continuer --> MettrePause : <<extends>>
|
||||
|
||||
CreerNouveauNiveau --> ExporterNiveau : <<extends>>
|
||||
ModifierNiveau --> ExporterNiveau : <<extends>>
|
||||
RetourSelection --> ParcourirNiveaux : <<include>>
|
||||
|
||||
@enduml
|
||||
|
@ -7,7 +7,7 @@ Les modélisations UML du projet sont générés à partir des fichiers `.puml`
|
||||
- [Diagramme de classes](./UML/class-diagram.puml)
|
||||
- [Diagramme d'activités](./UML/activity-diagram/activity-diagram.puml)
|
||||
- [Diagramme de cas d'utilisation](./UML/use-case-diagram.puml)
|
||||
- [Diagramme d'états](./UML/state-diagram.puml)
|
||||
- [Diagramme d'états](./UML/state-diagram/state-diagram.puml)
|
||||
|
||||
## Diagramme de Gantt
|
||||
|
||||
|
@ -1,48 +1,47 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"com.unity.collab-proxy": "2.6.0",
|
||||
"com.unity.feature.2d": "2.0.1",
|
||||
"com.unity.ide.rider": "3.0.31",
|
||||
"com.unity.ide.visualstudio": "2.0.22",
|
||||
"com.unity.inputsystem": "1.11.2",
|
||||
"com.unity.multiplayer.center": "1.0.0",
|
||||
"com.unity.test-framework": "1.4.5",
|
||||
"com.unity.timeline": "1.8.7",
|
||||
"com.unity.toolchain.linux-x86_64": "2.0.10",
|
||||
"com.unity.ugui": "2.0.0",
|
||||
"com.unity.visualscripting": "1.9.4",
|
||||
"com.yasirkula.simplefilebrowser": "https://github.com/yasirkula/UnitySimpleFileBrowser.git",
|
||||
"com.unity.modules.accessibility": "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.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"
|
||||
}
|
||||
"dependencies": {
|
||||
"com.unity.collab-proxy": "2.6.0",
|
||||
"com.unity.feature.2d": "2.0.1",
|
||||
"com.unity.ide.rider": "3.0.31",
|
||||
"com.unity.ide.visualstudio": "2.0.22",
|
||||
"com.unity.inputsystem": "1.11.2",
|
||||
"com.unity.multiplayer.center": "1.0.0",
|
||||
"com.unity.test-framework": "1.4.5",
|
||||
"com.unity.timeline": "1.8.7",
|
||||
"com.unity.ugui": "2.0.0",
|
||||
"com.unity.visualscripting": "1.9.4",
|
||||
"com.yasirkula.simplefilebrowser": "https://github.com/yasirkula/UnitySimpleFileBrowser.git",
|
||||
"com.unity.modules.accessibility": "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.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"
|
||||
}
|
||||
}
|
||||
|