Compare commits
48 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ffd2ab270 | |||
| 57082d0e63 | |||
| dc1f00d5a7 | |||
| 697b4d1bac | |||
| b800d3e4f7 | |||
|
|
3faef708ca | ||
|
|
f0e38b6641 | ||
| 89a7c0b91b | |||
|
|
2b88507eee | ||
|
|
ed490eea34 | ||
| 13642384a2 | |||
| 4096e208f3 | |||
| dad9ccfb13 | |||
|
|
8428823b11 | ||
| 2343f722de | |||
| e63cb46c38 | |||
| a8b1605179 | |||
|
|
f4ec722d41 | ||
|
|
3d80e4d8a3 | ||
| ad11946a20 | |||
|
|
1b58467509 | ||
|
|
786d238f05 | ||
| e21cd9f100 | |||
|
|
bef09b83dd | ||
| c51138a8cb | |||
| 84b31617d2 | |||
| a169db3aec | |||
| 42644afac8 | |||
| 8062c626a6 | |||
| 30d32ac8e5 | |||
| 214f206b01 | |||
| 2f1c758137 | |||
|
|
6ab0139ea7 | ||
| 3608997430 | |||
| df667ef231 | |||
| c0b4f8e07f | |||
|
|
c353c4cf79 | ||
| 3ce598d3bc | |||
| e278fb1b37 | |||
| edc7564cc9 | |||
| 5674149b9a | |||
|
|
eb750d5780 | ||
|
|
79807f3852 | ||
|
|
578472e785 | ||
|
|
90c849c05e | ||
|
|
d7239f5f44 | ||
| e08a43c72c | |||
|
|
bdfb0ec0d0 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -9,6 +9,7 @@
|
||||
/[Bb]uilds/
|
||||
/[Ll]ogs/
|
||||
/[Mm]emoryCaptures/
|
||||
/[Uu]ser[Ss]ettings/
|
||||
|
||||
# Asset meta data should only be ignored when the corresponding asset is also ignored
|
||||
!/[Aa]ssets/**/*.meta
|
||||
@@ -58,3 +59,4 @@ sysinfo.txt
|
||||
# Crashlytics generated file
|
||||
crashlytics-build.properties
|
||||
|
||||
UserSettings/Layouts/default-2021.dwlt
|
||||
|
||||
8
Assets/Assets/Pics/Character.meta
Normal file
8
Assets/Assets/Pics/Character.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d3aa14aea0cada4192dff0bab17a395
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
@@ -0,0 +1,171 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 91e2a85519f4f5d438dd117f0f58ced1
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 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: 1
|
||||
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
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Assets/Pics/Source.meta
Normal file
8
Assets/Assets/Pics/Source.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 352fac4e29fb531e3abdd1f6e3f1b12a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,159 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4cf5fe7c0e65d15508aeaefe5524d48b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 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: 1
|
||||
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
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Assets/Pics/pipa.png
Normal file
BIN
Assets/Assets/Pics/pipa.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
171
Assets/Assets/Pics/pipa.png.meta
Normal file
171
Assets/Assets/Pics/pipa.png.meta
Normal file
@@ -0,0 +1,171 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25172d66c85a3a947a8a3b8b74514ef9
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 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: 1
|
||||
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
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Windows Store Apps
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Assets/Sounds/ftsdemo1loop.mp3
Normal file
BIN
Assets/Assets/Sounds/ftsdemo1loop.mp3
Normal file
Binary file not shown.
22
Assets/Assets/Sounds/ftsdemo1loop.mp3.meta
Normal file
22
Assets/Assets/Sounds/ftsdemo1loop.mp3.meta
Normal file
@@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d779f8144b4238647982224ddbc418fc
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -271,6 +271,7 @@ GameObject:
|
||||
- component: {fileID: 958920304}
|
||||
- component: {fileID: 958920307}
|
||||
- component: {fileID: 958920308}
|
||||
- component: {fileID: 958920309}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
@@ -389,6 +390,158 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: b9102add15fe89844a6f103c51332836, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
MainMenuObj: {fileID: 0}
|
||||
OptionsMenu: {fileID: 0}
|
||||
VideoButton: {fileID: 0}
|
||||
--- !u!114 &958920309
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 958920303}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 38c0315629436f34d8ba48f6d00b8302, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
szoveg: {fileID: 1041644989}
|
||||
osszpont: 0
|
||||
--- !u!1 &1041644987
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1041644988}
|
||||
- component: {fileID: 1041644990}
|
||||
- component: {fileID: 1041644989}
|
||||
m_Layer: 5
|
||||
m_Name: pont_text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1041644988
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1041644987}
|
||||
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: 1934114490}
|
||||
m_RootOrder: 2
|
||||
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: -66.600006}
|
||||
m_SizeDelta: {x: 342.6646, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1041644989
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1041644987}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, 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_text: 'Pontszam: '
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 256
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &1041644990
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1041644987}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1127070444
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -426,7 +579,7 @@ RectTransform:
|
||||
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: -72.19}
|
||||
m_AnchoredPosition: {x: 0, y: 6.2100067}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1127070446
|
||||
@@ -639,7 +792,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 0
|
||||
m_UiScaleMode: 1
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 800, y: 600}
|
||||
@@ -685,6 +838,7 @@ RectTransform:
|
||||
m_Children:
|
||||
- {fileID: 1956911019}
|
||||
- {fileID: 1127070445}
|
||||
- {fileID: 1041644988}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@@ -728,7 +882,7 @@ RectTransform:
|
||||
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_AnchoredPosition: {x: 0, y: 78.4}
|
||||
m_SizeDelta: {x: 200, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1956911020
|
||||
|
||||
@@ -123,7 +123,7 @@ NavMeshSettings:
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &392158086
|
||||
--- !u!1 &810189436
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -131,130 +131,67 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 392158089}
|
||||
- component: {fileID: 392158088}
|
||||
- component: {fileID: 392158087}
|
||||
- component: {fileID: 392158091}
|
||||
- component: {fileID: 392158090}
|
||||
- component: {fileID: 810189439}
|
||||
- component: {fileID: 810189438}
|
||||
- component: {fileID: 810189437}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Name: EventSystem
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &392158087
|
||||
AudioListener:
|
||||
--- !u!114 &810189437
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 392158086}
|
||||
m_GameObject: {fileID: 810189436}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &392158088
|
||||
Camera:
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_SendPointerHoverToParent: 1
|
||||
m_HorizontalAxis: Horizontal
|
||||
m_VerticalAxis: Vertical
|
||||
m_SubmitButton: Submit
|
||||
m_CancelButton: Cancel
|
||||
m_InputActionsPerSecond: 10
|
||||
m_RepeatDelay: 0.5
|
||||
m_ForceModuleActive: 0
|
||||
--- !u!114 &810189438
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 392158086}
|
||||
m_GameObject: {fileID: 810189436}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.5764706, g: 0.5764706, b: 0.5764706, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &392158089
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_FirstSelected: {fileID: 0}
|
||||
m_sendNavigationEvents: 1
|
||||
m_DragThreshold: 10
|
||||
--- !u!4 &810189439
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 392158086}
|
||||
m_GameObject: {fileID: 810189436}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &392158090
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 392158086}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b9102add15fe89844a6f103c51332836, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &392158091
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 392158086}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_RenderShadows: 1
|
||||
m_RequiresDepthTextureOption: 2
|
||||
m_RequiresOpaqueTextureOption: 2
|
||||
m_CameraType: 0
|
||||
m_Cameras: []
|
||||
m_RendererIndex: -1
|
||||
m_VolumeLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 1
|
||||
m_VolumeTrigger: {fileID: 0}
|
||||
m_VolumeFrameworkUpdateModeOption: 2
|
||||
m_RenderPostProcessing: 0
|
||||
m_Antialiasing: 0
|
||||
m_AntialiasingQuality: 2
|
||||
m_StopNaN: 0
|
||||
m_Dithering: 0
|
||||
m_ClearDepth: 1
|
||||
m_AllowXRRendering: 1
|
||||
m_RequiresDepthTexture: 0
|
||||
m_RequiresColorTexture: 0
|
||||
m_Version: 2
|
||||
--- !u!1 &534187230
|
||||
--- !u!1 &828138248
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -262,10 +199,10 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 534187231}
|
||||
- component: {fileID: 534187234}
|
||||
- component: {fileID: 534187233}
|
||||
- component: {fileID: 534187232}
|
||||
- component: {fileID: 828138249}
|
||||
- component: {fileID: 828138252}
|
||||
- component: {fileID: 828138251}
|
||||
- component: {fileID: 828138250}
|
||||
m_Layer: 5
|
||||
m_Name: Menu
|
||||
m_TagString: Untagged
|
||||
@@ -273,34 +210,34 @@ GameObject:
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &534187231
|
||||
--- !u!224 &828138249
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 534187230}
|
||||
m_GameObject: {fileID: 828138248}
|
||||
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: 1019554695}
|
||||
m_Father: {fileID: 1833175879}
|
||||
- {fileID: 1432441531}
|
||||
m_Father: {fileID: 1055402643}
|
||||
m_RootOrder: 1
|
||||
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: -72.19}
|
||||
m_AnchoredPosition: {x: -2.9, y: 9.2}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &534187232
|
||||
--- !u!114 &828138250
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 534187230}
|
||||
m_GameObject: {fileID: 828138248}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
@@ -334,11 +271,11 @@ MonoBehaviour:
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 534187233}
|
||||
m_TargetGraphic: {fileID: 828138251}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 392158090}
|
||||
- m_Target: {fileID: 1442263263}
|
||||
m_TargetAssemblyTypeName: MainMenu, Assembly-CSharp
|
||||
m_MethodName: GoToMenu
|
||||
m_Mode: 1
|
||||
@@ -350,13 +287,13 @@ MonoBehaviour:
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!114 &534187233
|
||||
--- !u!114 &828138251
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 534187230}
|
||||
m_GameObject: {fileID: 828138248}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
@@ -380,15 +317,15 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &534187234
|
||||
--- !u!222 &828138252
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 534187230}
|
||||
m_GameObject: {fileID: 828138248}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1019554694
|
||||
--- !u!1 &1055402639
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -396,9 +333,247 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1019554695}
|
||||
- component: {fileID: 1019554697}
|
||||
- component: {fileID: 1019554696}
|
||||
- component: {fileID: 1055402643}
|
||||
- component: {fileID: 1055402642}
|
||||
- component: {fileID: 1055402641}
|
||||
- component: {fileID: 1055402640}
|
||||
m_Layer: 5
|
||||
m_Name: Canvas
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1055402640
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1055402639}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!114 &1055402641
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1055402639}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 1
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 800, y: 600}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
m_DynamicPixelsPerUnit: 1
|
||||
m_PresetInfoIsWorld: 0
|
||||
--- !u!223 &1055402642
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1055402639}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 0
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!224 &1055402643
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1055402639}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1310690303}
|
||||
- {fileID: 828138249}
|
||||
- {fileID: 1845412275}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!1 &1310690302
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1310690303}
|
||||
- component: {fileID: 1310690305}
|
||||
- component: {fileID: 1310690304}
|
||||
m_Layer: 5
|
||||
m_Name: vesztettel_text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1310690303
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1310690302}
|
||||
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: 1055402643}
|
||||
m_RootOrder: 0
|
||||
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: -2.8999944, y: 81.39}
|
||||
m_SizeDelta: {x: 200, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1310690304
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1310690302}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, 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_text: "Vesztett\xE9l"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &1310690305
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1310690302}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1432441530
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1432441531}
|
||||
- component: {fileID: 1432441533}
|
||||
- component: {fileID: 1432441532}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
@@ -406,19 +581,19 @@ GameObject:
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1019554695
|
||||
--- !u!224 &1432441531
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1019554694}
|
||||
m_GameObject: {fileID: 1432441530}
|
||||
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: 534187231}
|
||||
m_Father: {fileID: 828138249}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@@ -426,13 +601,13 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1019554696
|
||||
--- !u!114 &1432441532
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1019554694}
|
||||
m_GameObject: {fileID: 1432441530}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
@@ -515,15 +690,15 @@ MonoBehaviour:
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &1019554697
|
||||
--- !u!222 &1432441533
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1019554694}
|
||||
m_GameObject: {fileID: 1432441530}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1782492010
|
||||
--- !u!1 &1442263262
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -531,43 +706,192 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1782492011}
|
||||
- component: {fileID: 1782492013}
|
||||
- component: {fileID: 1782492012}
|
||||
m_Layer: 5
|
||||
m_Name: vesztett_text
|
||||
m_TagString: Untagged
|
||||
- component: {fileID: 1442263268}
|
||||
- component: {fileID: 1442263267}
|
||||
- component: {fileID: 1442263266}
|
||||
- component: {fileID: 1442263265}
|
||||
- component: {fileID: 1442263263}
|
||||
- component: {fileID: 1442263264}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1782492011
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1782492010}
|
||||
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: 1833175879}
|
||||
m_RootOrder: 0
|
||||
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: 200, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1782492012
|
||||
--- !u!114 &1442263263
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1782492010}
|
||||
m_GameObject: {fileID: 1442263262}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b9102add15fe89844a6f103c51332836, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
MainMenuObj: {fileID: 0}
|
||||
OptionsMenu: {fileID: 0}
|
||||
VideoButton: {fileID: 0}
|
||||
--- !u!114 &1442263264
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1442263262}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 38c0315629436f34d8ba48f6d00b8302, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
szoveg: {fileID: 1845412276}
|
||||
osszpont: 0
|
||||
--- !u!114 &1442263265
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1442263262}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_RenderShadows: 1
|
||||
m_RequiresDepthTextureOption: 2
|
||||
m_RequiresOpaqueTextureOption: 2
|
||||
m_CameraType: 0
|
||||
m_Cameras: []
|
||||
m_RendererIndex: -1
|
||||
m_VolumeLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 1
|
||||
m_VolumeTrigger: {fileID: 0}
|
||||
m_VolumeFrameworkUpdateModeOption: 2
|
||||
m_RenderPostProcessing: 0
|
||||
m_Antialiasing: 0
|
||||
m_AntialiasingQuality: 2
|
||||
m_StopNaN: 0
|
||||
m_Dithering: 0
|
||||
m_ClearDepth: 1
|
||||
m_AllowXRRendering: 1
|
||||
m_RequiresDepthTexture: 0
|
||||
m_RequiresColorTexture: 0
|
||||
m_Version: 2
|
||||
--- !u!81 &1442263266
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1442263262}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1442263267
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1442263262}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.5764706, g: 0.5764706, b: 0.5764706, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &1442263268
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1442263262}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1845412274
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1845412275}
|
||||
- component: {fileID: 1845412277}
|
||||
- component: {fileID: 1845412276}
|
||||
m_Layer: 5
|
||||
m_Name: pont_text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1845412275
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1845412274}
|
||||
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: 1055402643}
|
||||
m_RootOrder: 2
|
||||
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: -2.9000096, y: -65.61}
|
||||
m_SizeDelta: {x: 306.5059, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1845412276
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1845412274}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
@@ -581,7 +905,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Vesztettel
|
||||
m_text: 'Pontszam: '
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
@@ -614,9 +938,9 @@ MonoBehaviour:
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 256
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
@@ -650,113 +974,11 @@ MonoBehaviour:
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &1782492013
|
||||
--- !u!222 &1845412277
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1782492010}
|
||||
m_GameObject: {fileID: 1845412274}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1833175875
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1833175879}
|
||||
- component: {fileID: 1833175878}
|
||||
- component: {fileID: 1833175877}
|
||||
- component: {fileID: 1833175876}
|
||||
m_Layer: 5
|
||||
m_Name: Canvas
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1833175876
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1833175875}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!114 &1833175877
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1833175875}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 0
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 800, y: 600}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
m_DynamicPixelsPerUnit: 1
|
||||
m_PresetInfoIsWorld: 0
|
||||
--- !u!223 &1833175878
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1833175875}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 0
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!224 &1833175879
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1833175875}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1782492011}
|
||||
- {fileID: 534187231}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,31 +4,31 @@ using UnityEngine;
|
||||
using TMPro;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class Akciok : MonoBehaviour
|
||||
{
|
||||
//Betarazashoz
|
||||
public int toltenyszamlalo = 0;
|
||||
public TMP_Text[] toltenyek;
|
||||
|
||||
private int tolteny_index = 3;
|
||||
private int felhasznalt_tolteny = 0;
|
||||
public int betarazott_tolteny = 3;
|
||||
private Akciopont ap;
|
||||
private int betarazott_tolteny = 3;
|
||||
|
||||
public int toltenyszamlalo = 0;
|
||||
public int betarazasDb = 2;
|
||||
|
||||
public int getBetarazottTolteny(){ return betarazott_tolteny; }
|
||||
|
||||
//
|
||||
private Akciopont ap;
|
||||
//
|
||||
|
||||
//Nyomozashoz
|
||||
private movement movement;
|
||||
public TMP_Text[] nyomozas_x;
|
||||
public TMP_Text[] nyomozas_oszlop;
|
||||
private string[,] nyomozasok =
|
||||
{
|
||||
{"ures", "ures", "ures", "" },
|
||||
{"ures", "ures", "ures", "" },
|
||||
{"ures", "ures", "ures", "" },
|
||||
{"ures", "ures", "ures", "" },
|
||||
|
||||
};
|
||||
private bool[,] nyomozas = new bool[4,3];
|
||||
|
||||
//Hack
|
||||
public TMP_Text elso_sor_text;
|
||||
@@ -45,11 +45,18 @@ public class Akciok : MonoBehaviour
|
||||
private bool omega = false;
|
||||
//
|
||||
|
||||
private DoubleClick doubleClick;
|
||||
private MessageBox messageBox;
|
||||
|
||||
|
||||
private void Awake(){
|
||||
ap = FindObjectOfType<Akciopont>();
|
||||
movement = FindObjectOfType<movement>();
|
||||
upgrade = FindObjectOfType<Upgrade>();
|
||||
source = FindObjectOfType<Source>();
|
||||
source = FindObjectOfType<Source>();
|
||||
|
||||
doubleClick = FindObjectOfType<DoubleClick>();
|
||||
messageBox = FindObjectOfType<MessageBox>();
|
||||
}
|
||||
|
||||
private void Start(){
|
||||
@@ -60,17 +67,30 @@ public class Akciok : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void Betarazas(int betarazas)
|
||||
|
||||
public void CallBetarazas(){
|
||||
doubleClick.AddEvent(Betarazas);
|
||||
messageBox.SendMessageToBox("Biztos be akarsz tárazni 2 töltényt? (Ez 1 ap-ba kerül)");
|
||||
doubleClick.ShowConfirmation();
|
||||
}
|
||||
|
||||
public void Betarazas()
|
||||
{
|
||||
if (tolteny_index < 24 && ap.akciopont != 0)
|
||||
//int betarazas = 2;
|
||||
if(ap.getAkciopont() == 0){
|
||||
messageBox.SendMessageToBox("Nincs elég ap-d az akcióhoz!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (tolteny_index < 24)
|
||||
{
|
||||
if (tolteny_index + betarazas > 23)
|
||||
if (tolteny_index + betarazasDb > 24)
|
||||
{
|
||||
tolteny_index = 23;
|
||||
tolteny_index = 24;
|
||||
}
|
||||
else
|
||||
{
|
||||
tolteny_index += betarazas;
|
||||
tolteny_index += betarazasDb;
|
||||
}
|
||||
//felhasznalt toltenytol megy hogy az ott levo x-et ne irja felul
|
||||
for (int i = felhasznalt_tolteny; i < tolteny_index; i++)
|
||||
@@ -78,9 +98,11 @@ public class Akciok : MonoBehaviour
|
||||
toltenyek[i].text = "O";
|
||||
}
|
||||
|
||||
betarazott_tolteny += betarazas;
|
||||
//tolteny_index++;
|
||||
|
||||
betarazott_tolteny += betarazasDb;
|
||||
if(betarazott_tolteny > 24){
|
||||
betarazott_tolteny = 24;
|
||||
}
|
||||
//tolteny_index++;
|
||||
|
||||
ap.UpdateAkciopont(-1);
|
||||
|
||||
@@ -89,7 +111,7 @@ public class Akciok : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public bool Loves(int elhasznalt_toltenyek)
|
||||
public bool Loves(int elhasznalt_toltenyek) //confirm TODO
|
||||
{
|
||||
if (felhasznalt_tolteny < betarazott_tolteny)
|
||||
{
|
||||
@@ -118,11 +140,17 @@ public class Akciok : MonoBehaviour
|
||||
}
|
||||
|
||||
|
||||
public void CallNyomozas(){
|
||||
doubleClick.AddEvent(Nyomozas);
|
||||
messageBox.SendMessageToBox("Biztos nyomozni akarsz? (Ez 1 ap-ba kerül)");
|
||||
doubleClick.ShowConfirmation();
|
||||
}
|
||||
//Nyomozas
|
||||
public void Nyomozas()
|
||||
{
|
||||
if (ap.akciopont <= 0)
|
||||
public void Nyomozas() //valami elromlott az indexelessel ha eventnek at van adva || ELVILEG JAVITVA TESZTELNI TOVABB NEM ART
|
||||
{
|
||||
if (ap.getAkciopont() <= 0)
|
||||
{
|
||||
messageBox.SendMessageToBox("Nincs elég akciópontod!");
|
||||
Debug.Log("nincs eleg akciopont");
|
||||
return;
|
||||
}
|
||||
@@ -130,29 +158,29 @@ public class Akciok : MonoBehaviour
|
||||
int atirandox = movement.jelenlegi_x - 1;
|
||||
int atirandoy = movement.jelenlegi_y - 1;
|
||||
|
||||
if (nyomozasok[atirandoy, atirandox] == "nyomozott")
|
||||
if (nyomozas[atirandoy, atirandox])
|
||||
{
|
||||
Debug.Log("Itt mar nyomoztal");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
nyomozasok[atirandoy, atirandox] = "nyomozott";
|
||||
nyomozas[atirandoy, atirandox] = true;
|
||||
}
|
||||
|
||||
int counter = 0;
|
||||
//egy sorral feljebb megy
|
||||
for (int i = 0; i < nyomozasok.GetLength(0); i++)
|
||||
for (int i = 0; i < nyomozas.GetLength(0); i++)
|
||||
{
|
||||
for (int j = 0; j < nyomozasok.GetLength(1); j++)
|
||||
for (int j = 0; j < nyomozas.GetLength(1); j++)
|
||||
{
|
||||
if (nyomozasok[i, j].Equals("nyomozott"))
|
||||
if (nyomozas[i, j])
|
||||
{
|
||||
nyomozas_x[counter].text = "X";
|
||||
counter++;
|
||||
Debug.Log("counter: " + counter);
|
||||
}
|
||||
else if (nyomozasok[i, j].Equals("ures"))
|
||||
else if (!nyomozas[i, j])
|
||||
{
|
||||
counter++;
|
||||
}
|
||||
@@ -162,18 +190,6 @@ public class Akciok : MonoBehaviour
|
||||
ap.UpdateAkciopont(-1);
|
||||
|
||||
NyomozasOszlopCheck();
|
||||
|
||||
Debug.Log("----------------");
|
||||
for (int i = 0; i < nyomozasok.GetLength(0); i++)
|
||||
{
|
||||
string sor = "";
|
||||
for (int j = 0; j < nyomozasok.GetLength(1); j++)
|
||||
{
|
||||
sor += nyomozasok[i, j] + " ";
|
||||
}
|
||||
Debug.Log(sor);
|
||||
}
|
||||
Debug.Log("----------------");
|
||||
}
|
||||
|
||||
private void NyomozasOszlopCheck()
|
||||
@@ -183,10 +199,9 @@ public class Akciok : MonoBehaviour
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
if (nyomozasok[i, oszlop].Equals("nyomozott"))
|
||||
if (nyomozas[i, oszlop])
|
||||
{
|
||||
nyomozas_counter++;
|
||||
//Debug.Log(nyomozasok[i, oszlop]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,13 +216,19 @@ public class Akciok : MonoBehaviour
|
||||
}
|
||||
|
||||
|
||||
public void Hack()
|
||||
public void CallHack(){
|
||||
doubleClick.AddEvent(Hack);
|
||||
messageBox.SendMessageToBox("Biztos hackelni akarsz? (Ez "+upgrade.hack[upgrade.getHackIndex()]+" ap-ba kerül)");
|
||||
doubleClick.ShowConfirmation();
|
||||
}
|
||||
private void Hack()
|
||||
{
|
||||
int count = 0;
|
||||
int rand;
|
||||
|
||||
if (ap.akciopont < upgrade.hack[upgrade.getHackIndex()])
|
||||
{ //van e eleg akicopont
|
||||
if (ap.getAkciopont() < upgrade.hack[upgrade.getHackIndex()])
|
||||
{ //van e eleg akicopont
|
||||
messageBox.SendMessageToBox("Nincs eleg akciopontod!");
|
||||
Debug.Log("nincs eleg ap a hackeleshez");
|
||||
return;
|
||||
}
|
||||
@@ -218,8 +239,7 @@ public class Akciok : MonoBehaviour
|
||||
//egy sorban lett e ketszer nyomozva
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
//Debug.Log("Belep for");
|
||||
if (nyomozasok[movement.jelenlegi_y - 1, i] == "nyomozott")
|
||||
if (nyomozas[movement.jelenlegi_y - 1, i])
|
||||
{
|
||||
count++;
|
||||
Debug.Log("count: " + count);
|
||||
@@ -237,7 +257,6 @@ public class Akciok : MonoBehaviour
|
||||
//forras helyenek bejelolese
|
||||
if (count >= 2 && !hackelt_sorok.Contains(movement.jelenlegi_y))
|
||||
{
|
||||
Debug.Log("belep");
|
||||
if (movement.jelenlegi_y == 1)
|
||||
{
|
||||
elso_sor_text.text = "X";
|
||||
@@ -248,6 +267,7 @@ public class Akciok : MonoBehaviour
|
||||
{
|
||||
rand = UnityEngine.Random.Range(1, 7);
|
||||
Debug.Log("sorsolt szam: " + rand);
|
||||
|
||||
if (movement.jelenlegi_y == 2)
|
||||
{ //alpha, omega
|
||||
if (rand < 4)
|
||||
@@ -302,12 +322,13 @@ public class Akciok : MonoBehaviour
|
||||
hackelt_sorok[movement.jelenlegi_y - 1] = movement.jelenlegi_y;
|
||||
}
|
||||
}
|
||||
//ap.akciopont -= upgrade.hack[upgrade.getHackIndex()]; //ap koltseg levonasa
|
||||
|
||||
ap.UpdateAkciopont(-upgrade.hack[upgrade.getHackIndex()]); //ap koltseg levonasa
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt mar hackeltel");
|
||||
messageBox.SendMessageToBox("Itt már hackeltél!");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,26 +6,25 @@ using TMPro;
|
||||
public class Akciopont : MonoBehaviour
|
||||
{
|
||||
public TMP_Text text;
|
||||
private int akciopont = 0;
|
||||
|
||||
public int akciopont = 0;
|
||||
public int getAkciopont(){ return akciopont; }
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
text.text = "Akciopontok: ";
|
||||
private void Start(){
|
||||
setText();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
private void setText(){
|
||||
text.text = "Akciopontok: " + akciopont;
|
||||
}
|
||||
|
||||
public void UpdateAkciopont(int number) {
|
||||
akciopont += number;
|
||||
setText();
|
||||
}
|
||||
|
||||
public void resetAkciopont() {
|
||||
akciopont = 0;
|
||||
setText();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,28 +1,41 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.IO; //ideiglenes amig a mac camera bug nincs javitva aztan torolheto
|
||||
using System.Text; //ideiglenes
|
||||
using UnityEngine;
|
||||
|
||||
public class AspectRatioHandler : MonoBehaviour
|
||||
{
|
||||
public Camera mainCamera;
|
||||
private StreamWriter writer;
|
||||
|
||||
private void Awake() {
|
||||
//to be removed when mac aspect ratio is fixed
|
||||
writer = new StreamWriter(Application.persistentDataPath + "/aspectratio.txt", false, Encoding.Default);
|
||||
|
||||
double aspectRatio = (double)Screen.width / (double)Screen.height;
|
||||
aspectRatio = Math.Round(aspectRatio, 2);
|
||||
writer.Write("felbontas: width: " + Screen.width + " height: " + Screen.height + " aspectratio: " + aspectRatio+ "unity aspect: " + mainCamera.aspect);
|
||||
writer.Close();
|
||||
Debug.Log("aspectratio: " + aspectRatio);
|
||||
|
||||
//5:4 1,25, 4:3 1,33, 16:9 1,77, 16:10 1,6, 21:9 2,33
|
||||
|
||||
if(aspectRatio == 1.78 || aspectRatio == 2.33){
|
||||
mainCamera.orthographicSize = 10.4f; //16:9, 21:9
|
||||
if(Application.platform == RuntimePlatform.OSXPlayer)
|
||||
mainCamera.orthographicSize = 11.5f; //mac aspect ratio fix???
|
||||
else
|
||||
mainCamera.orthographicSize = 10.4f; //16:9, 21:9
|
||||
}else if(aspectRatio == 1.6){
|
||||
mainCamera.orthographicSize = 11.43f; //16:10
|
||||
if(Application.platform == RuntimePlatform.OSXPlayer)
|
||||
mainCamera.orthographicSize = 11.5f; //mac aspect ratio fix???
|
||||
else
|
||||
mainCamera.orthographicSize = 11.43f; //16:9, 21:9 //16:10 11.43f
|
||||
}else if(aspectRatio == 1.33){
|
||||
mainCamera.orthographicSize = 13.72f; //4:3
|
||||
}else if(aspectRatio == 1.25){
|
||||
mainCamera.orthographicSize = 14.68f;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
39
Assets/Scripts/AudioManager.cs
Normal file
39
Assets/Scripts/AudioManager.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
|
||||
public class AudioManager : MonoBehaviour
|
||||
{
|
||||
public AudioMixer audioMixer;
|
||||
public Sound[] sounds;
|
||||
|
||||
private void Awake() {
|
||||
foreach(Sound s in sounds){
|
||||
s.source = gameObject.AddComponent<AudioSource>();
|
||||
s.source.clip = s.clip;
|
||||
|
||||
s.source.volume = s.volume;
|
||||
s.source.pitch = s.pitch;
|
||||
s.source.loop = s.loop;
|
||||
|
||||
s.source.outputAudioMixerGroup = s.outputMixer;
|
||||
}
|
||||
}
|
||||
|
||||
public void Play(string name){
|
||||
Sound s = Array.Find(sounds, sounds => sounds.name == name);
|
||||
s.source.Play();
|
||||
}
|
||||
|
||||
public void SetMainVolume(float mainVolume) {
|
||||
audioMixer.SetFloat("Master", mainVolume);
|
||||
}
|
||||
public void SetMusicVolume(float musicVolume) {
|
||||
audioMixer.SetFloat("Music", musicVolume);
|
||||
}
|
||||
public void SetSfxVolume(float sfxVolume) {
|
||||
audioMixer.SetFloat("Sfx", sfxVolume);
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/AudioManager.cs.meta
Normal file
11
Assets/Scripts/AudioManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc69655c5f792d9dab9db9dc72d26e93
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
38
Assets/Scripts/ControllerHandler.cs
Normal file
38
Assets/Scripts/ControllerHandler.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ControllerHandler : MonoBehaviour
|
||||
{
|
||||
[SerializeField]private bool connected = false;
|
||||
public string[] controllers;
|
||||
|
||||
private IEnumerator detectControllers(){
|
||||
while(true){
|
||||
controllers = Input.GetJoystickNames();
|
||||
|
||||
if(!connected && controllers.Length > 0){
|
||||
Debug.Log("Controller connected");
|
||||
for(int i = 0; i < controllers.Length; i++){
|
||||
Debug.Log(controllers[i]);
|
||||
|
||||
//lock and disable mouse
|
||||
//Cursor.lockState = CursorLockMode.locked;
|
||||
//Cursor.visible = false;
|
||||
|
||||
//yield break;
|
||||
}
|
||||
}else if(connected && controllers.Length == 0){
|
||||
Debug.Log("disconnected / not connected");
|
||||
}else if(!connected && controllers.Length == 0){
|
||||
Debug.Log("not connected");
|
||||
}
|
||||
|
||||
yield return new WaitForSecondsRealtime(5f); //check every 5 seconds
|
||||
}
|
||||
}
|
||||
|
||||
private void Awake() {
|
||||
StartCoroutine(detectControllers());
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/ControllerHandler.cs.meta
Normal file
11
Assets/Scripts/ControllerHandler.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5834fb3b3751703f9bfcd35d25b4ccc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -7,16 +7,23 @@ public class Dice : MonoBehaviour {
|
||||
public Sprite[] diceSides = new Sprite[6];
|
||||
public SpriteRenderer hely1;
|
||||
public SpriteRenderer hely2;
|
||||
[SerializeField] private int spriteSize = 60;
|
||||
private Vector2 diceSpriteSize;
|
||||
|
||||
public Button dice1btnBtn;
|
||||
public Button dice2btnBtn;
|
||||
|
||||
private Upgrade upgrade;
|
||||
private Akciopont ap;
|
||||
private Energia energiasav;
|
||||
private Targyak targyak;
|
||||
private Ugynok ugynok;
|
||||
private movement movement;
|
||||
|
||||
public int[] diceResult = { 0, 0 };
|
||||
public List<int> ujertek = new List<int>();
|
||||
public int valasztottErtek; //a jatekos altal valasztott dobott ertek helye
|
||||
private bool locked = false; //ne lehessen ujra kivalasztani a masikat ha mar tortent egy valasztas
|
||||
[SerializeField] private bool locked = false; //ne lehessen ujra kivalasztani a masikat ha mar tortent egy valasztas
|
||||
public bool adrenalinMegerosites = false;
|
||||
public GameObject adrenalinHasznalat;
|
||||
public Button confirm;
|
||||
@@ -34,11 +41,17 @@ public class Dice : MonoBehaviour {
|
||||
public bool dobottEgyszer = false; //tudjon ujra dobni vagy nem
|
||||
public int ujradobasszamlalo;
|
||||
|
||||
[SerializeField] private bool ugynokDobasErtek = false; //ertek valasztashoz hogy tudja az ugynok csapat miatt lett meghivva
|
||||
private bool elsoDobas = true;
|
||||
private void Awake() {
|
||||
upgrade = FindObjectOfType<Upgrade>();
|
||||
ap = FindObjectOfType<Akciopont>();
|
||||
energiasav = FindObjectOfType<Energia>();
|
||||
targyak = FindObjectOfType<Targyak>();
|
||||
ugynok = FindObjectOfType<Ugynok>();
|
||||
movement = FindObjectOfType<movement>();
|
||||
|
||||
diceSpriteSize = new Vector2(spriteSize, spriteSize);
|
||||
}
|
||||
|
||||
public void ertekValasztas(GameObject gomb) {
|
||||
@@ -46,28 +59,79 @@ public class Dice : MonoBehaviour {
|
||||
if (gomb.name == "dice1btn") {
|
||||
valasztottErtek = diceResult[0];
|
||||
if (diceResult[0] < diceResult[1]) {
|
||||
upgrade.canUpgrade = true; //kisebb szam valasztasa eseten fejlesztes egyszer
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||
} else {
|
||||
energiasav.csokkenEnergia(1); //nagyobb szam valasztasa eseten -1 energia
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
}
|
||||
if(!ugynokDobasErtek){
|
||||
upgrade.canUpgrade = true; //kisebb szam valasztasa eseten fejlesztes egyszer
|
||||
//locked = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||
}else{
|
||||
//ugynok csapat szama
|
||||
ugynok.UgynokSorsolas(movement.jelenlegi_x, movement.jelenlegi_y, valasztottErtek);
|
||||
|
||||
//-1 energia
|
||||
energiasav.csokkenEnergia(1);
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
}
|
||||
} else {
|
||||
if(!ugynokDobasErtek){
|
||||
energiasav.csokkenEnergia(1); //nagyobb szam valasztasa eseten -1 energia
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
//locked = true;
|
||||
}else{
|
||||
//ugynok csapat szama
|
||||
ugynok.UgynokSorsolas(movement.jelenlegi_x, movement.jelenlegi_y, valasztottErtek);
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
}
|
||||
}
|
||||
//if(!ugynokDobasErtek)
|
||||
locked = true;
|
||||
|
||||
locked = true;
|
||||
} else if (gomb.name == "dice2btn") {
|
||||
valasztottErtek = diceResult[1];
|
||||
if (diceResult[1] < diceResult[0]) {
|
||||
upgrade.canUpgrade = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||
if(!ugynokDobasErtek){
|
||||
upgrade.canUpgrade = true; //kisebb szam valasztasa eseten fejlesztes egyszer
|
||||
//locked = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||
}else{
|
||||
//ugynok csapat szama
|
||||
ugynok.UgynokSorsolas(movement.jelenlegi_x, movement.jelenlegi_y, valasztottErtek);
|
||||
//-1 energia
|
||||
energiasav.csokkenEnergia(1);
|
||||
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
}
|
||||
} else {
|
||||
energiasav.csokkenEnergia(1);
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
if(!ugynokDobasErtek){
|
||||
energiasav.csokkenEnergia(1); //nagyobb szam valasztasa eseten -1 energia
|
||||
//locked = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
}else{
|
||||
//ugynok csapat szama
|
||||
ugynok.UgynokSorsolas(movement.jelenlegi_x, movement.jelenlegi_y, valasztottErtek);
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
||||
}
|
||||
}
|
||||
|
||||
locked = true;
|
||||
//if(!ugynokDobasErtek)
|
||||
locked = true;
|
||||
}
|
||||
|
||||
ap.UpdateAkciopont(getValasztottErtek() + upgrade.akcio[upgrade.getAkcioIndex()]);
|
||||
if(!ugynokDobasErtek)
|
||||
ap.UpdateAkciopont(getValasztottErtek() + upgrade.akcio[upgrade.getAkcioIndex()]);
|
||||
else{
|
||||
ugynokDobasErtek = false;
|
||||
setLocked(false);
|
||||
}
|
||||
|
||||
dice1btnBtn.interactable = false;
|
||||
dice2btnBtn.interactable = false;
|
||||
|
||||
/*if(elsoDobas){
|
||||
//jatek kezdeskor elso dobas ugynok csapat meghatarozas kezdo helyszinen
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.UgynokValasztas);
|
||||
CallRenderDice(true);
|
||||
elsoDobas = false;
|
||||
}*/
|
||||
}
|
||||
|
||||
Debug.Log("valasztott ertek: " + valasztottErtek + " locked status: " + locked);
|
||||
@@ -82,35 +146,38 @@ public class Dice : MonoBehaviour {
|
||||
return finalSide;
|
||||
}
|
||||
|
||||
public void CallRenderDice() => StartCoroutine(renderDice());
|
||||
public void CallRenderDice(bool ugynokDobas) => StartCoroutine(renderDice(ugynokDobas));
|
||||
|
||||
public IEnumerator renderDice() {
|
||||
public IEnumerator renderDice(bool ugynokDobas) {
|
||||
//ha zarolva van akkor ne tudjon ujra dobni / csak egyszer dobhasson (amig nincs feloldva a kovetkezo dobashoz)
|
||||
if(dobottEgyszer) yield break;
|
||||
//ha ugynok miatt kell dobni mikor mar nincs ujradobas tudjon dobni
|
||||
if(dobottEgyszer && !ugynokDobas) yield break;
|
||||
|
||||
//dice gombok kikapcsolasa hogy amig nem vegez ne tudjon erteket valasztani
|
||||
dice1btnBtn.enabled = false;
|
||||
dice2btnBtn.enabled = false;
|
||||
dice2btnBtn.enabled = false;
|
||||
|
||||
do {
|
||||
diceResult[0] = RollDice();
|
||||
diceResult[1] = RollDice();
|
||||
} while (diceResult[0] == diceResult[1]);
|
||||
|
||||
//dice porgo animacio
|
||||
callAnimateDice(hely1, diceResult[0]);
|
||||
callAnimateDice(hely2, diceResult[1]);
|
||||
|
||||
//lassa a jatekos mit dobott
|
||||
hely1.sprite = diceSides[diceResult[0]-1];
|
||||
hely1.size = new Vector2(38, 38);
|
||||
hely1.size = diceSpriteSize;
|
||||
|
||||
hely2.sprite = diceSides[diceResult[1]-1];
|
||||
hely2.size = new Vector2(38, 38);
|
||||
|
||||
ujradobasszamlalo--;
|
||||
Debug.Log("ujradobasszamlalo: " + ujradobasszamlalo);
|
||||
if(ujradobasszamlalo == 0){
|
||||
dobottEgyszer = true;
|
||||
}
|
||||
hely2.size = diceSpriteSize;
|
||||
|
||||
if(ugynokDobas){
|
||||
ugynokDobasErtek = true;
|
||||
setLocked(false);
|
||||
}
|
||||
|
||||
//ha megvan a targy
|
||||
if(targyak.adrenalinloket > 0) {
|
||||
//helyszin collider kikapcsolas a gomb miatt
|
||||
@@ -181,6 +248,9 @@ public class Dice : MonoBehaviour {
|
||||
diceResult[0] = targyak.ujertek1;
|
||||
diceResult[1] = targyak.ujertek2;
|
||||
dobottEgyszer = true;
|
||||
|
||||
if(!ugynokDobas) //ha ugynok miatt van dobas ne vonjon le
|
||||
ujradobasszamlalo++; //elhasznal egyet fent
|
||||
}
|
||||
}
|
||||
//deaktivalas
|
||||
@@ -188,15 +258,25 @@ public class Dice : MonoBehaviour {
|
||||
}
|
||||
|
||||
hely1.sprite = diceSides[diceResult[0]-1];
|
||||
hely1.size = new Vector2(38, 38);
|
||||
hely1.size = diceSpriteSize;
|
||||
|
||||
hely2.sprite = diceSides[diceResult[1]-1];
|
||||
hely2.size = new Vector2(38, 38);
|
||||
hely2.size = diceSpriteSize;
|
||||
dobott++;
|
||||
|
||||
//ha vegzett mindennel kapcsolja vissza az ertekvalasztast
|
||||
dice1btnBtn.enabled = true;
|
||||
dice2btnBtn.enabled = true;
|
||||
dice1btnBtn.interactable = true;
|
||||
dice2btnBtn.interactable = true;
|
||||
|
||||
if(!ugynokDobas){ //ha ugynok miatt van dobas ne vonjon le
|
||||
ujradobasszamlalo--;
|
||||
Debug.Log("ujradobasszamlalo: " + ujradobasszamlalo);
|
||||
if(ujradobasszamlalo == 0){
|
||||
dobottEgyszer = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void HelyszinKiBekapcs(bool kikapcsolas){
|
||||
@@ -211,4 +291,30 @@ public class Dice : MonoBehaviour {
|
||||
public void setAdrenalinMegerosites(bool adrenalinMegerosites) {
|
||||
this.adrenalinMegerosites = adrenalinMegerosites;
|
||||
}
|
||||
|
||||
public void callAnimateDice(SpriteRenderer rend, int diceErtek, float waitTime = 500f) => StartCoroutine(AnimateTheDice(rend, diceErtek, waitTime));
|
||||
private IEnumerator AnimateTheDice(SpriteRenderer rend, int diceErtek, float waitTime = 500f)
|
||||
{
|
||||
int randomDiceSide;
|
||||
float time = 0f;
|
||||
bool fusson = true;
|
||||
|
||||
while(fusson){
|
||||
time += Time.time;
|
||||
//Debug.Log("time: " + time);
|
||||
|
||||
if(time >= waitTime) fusson = false;
|
||||
|
||||
randomDiceSide = Random.Range(0, 5);
|
||||
|
||||
rend.sprite = diceSides[Random.Range(0, 5)];
|
||||
rend.size = diceSpriteSize;
|
||||
|
||||
yield return new WaitForSecondsRealtime(0.05f);
|
||||
}
|
||||
|
||||
rend.sprite = diceSides[diceErtek - 1];
|
||||
rend.size = diceSpriteSize;
|
||||
Kezdohelyszin.kesz = true;
|
||||
}
|
||||
}
|
||||
|
||||
72
Assets/Scripts/DoubleClick.cs
Normal file
72
Assets/Scripts/DoubleClick.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using TMPro;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class DoubleClick : MonoBehaviour
|
||||
{
|
||||
private UnityEvent toDoubleClick; //event tarolo
|
||||
[SerializeField] private Button confirmDoubleClick;
|
||||
[SerializeField] private Button cancelDoubleClick;
|
||||
|
||||
private MessageBox messageBox;
|
||||
|
||||
private void Awake() {
|
||||
messageBox = FindObjectOfType<MessageBox>();
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
if(toDoubleClick == null){
|
||||
toDoubleClick = new UnityEvent();
|
||||
}
|
||||
//AddEvent(TestFV); //testing only
|
||||
}
|
||||
|
||||
public void AddEvent(UnityAction function, bool emptyEvents = true){ //event hozzaadasa
|
||||
if(emptyEvents) RemoveFunctions(); //legyenek e torolve az eltarolt eventek
|
||||
|
||||
toDoubleClick.AddListener(function);
|
||||
}
|
||||
|
||||
public void RemoveFunctions(){ //eltarolt eventek torlese
|
||||
toDoubleClick.RemoveAllListeners();
|
||||
}
|
||||
|
||||
public void ShowConfirmation(){//megerositeshez a dolgok megjelenitese | (string message)
|
||||
/*messageBox.ResetMessageBox();
|
||||
messageBox.SendMessageToBox(message); //uzenet ami a boxba jelenjek meg a usernek*/
|
||||
|
||||
//confirmDoubleClick.onClick.AddListener(StartEvent); //a confirm gomb indidtsa el az eventet
|
||||
confirmDoubleClick.onClick.AddListener(ConfirmOnClicks);
|
||||
|
||||
ShowButtons(true);
|
||||
}
|
||||
|
||||
private void ConfirmOnClicks(){
|
||||
StartEvent();
|
||||
AfterInvoke();
|
||||
}
|
||||
|
||||
private void StartEvent(){
|
||||
toDoubleClick.Invoke();
|
||||
}
|
||||
|
||||
private void AfterInvoke(){
|
||||
RemoveFunctions(); //event lista uritese miutan fel lett hasznalva
|
||||
confirmDoubleClick.onClick.RemoveAllListeners(); //gomb onclick torlese
|
||||
messageBox.ResetMessageBox(); //uzenet torlese
|
||||
ShowButtons(false);
|
||||
}
|
||||
|
||||
public void TestFV(){
|
||||
Debug.Log("Test fv");
|
||||
}
|
||||
|
||||
|
||||
private void ShowButtons(bool show){
|
||||
confirmDoubleClick.gameObject.SetActive(show);
|
||||
cancelDoubleClick.gameObject.SetActive(show);
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/DoubleClick.cs.meta
Normal file
11
Assets/Scripts/DoubleClick.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3353fed86c7ecaa489764b0dca579cbb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -7,12 +7,19 @@ public class Elet : MonoBehaviour
|
||||
{
|
||||
public TMP_Text[] elet_text;
|
||||
public int elet = 2;
|
||||
private int elet_vesztve = 0;
|
||||
[SerializeField] private int elet_vesztve = 0;
|
||||
private int elet_megszerezve = 2;
|
||||
private jatekmanager jatekmanager;
|
||||
|
||||
|
||||
[SerializeField] private bool orokelet;
|
||||
|
||||
private void Awake() {
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
|
||||
#if !UNITY_EDITOR //buildelve mindig false legyen az orokelet
|
||||
orokelet = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
@@ -21,6 +28,13 @@ public class Elet : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void Update() {
|
||||
if(elet+1 == 0 && !orokelet){
|
||||
jatekmanager.Instance.jatekosvesztett = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Vesztette);
|
||||
}
|
||||
}
|
||||
|
||||
public void Eletplusz() {
|
||||
if (elet > 4) return;
|
||||
if (elet_megszerezve > 4) return;
|
||||
@@ -37,12 +51,13 @@ public class Elet : MonoBehaviour
|
||||
}
|
||||
|
||||
public void Eletvesztes() {
|
||||
if (elet_vesztve > 4)
|
||||
if(orokelet) return;
|
||||
if (elet_vesztve > 5)
|
||||
{
|
||||
jatekmanager.jatekosvesztett = true;
|
||||
//jatekmanager.jatekosvesztett = true;
|
||||
return;
|
||||
}
|
||||
if (elet_megszerezve > elet +1) return;
|
||||
//if (elet_megszerezve > elet +1) return;
|
||||
//if(elet < 0) return;
|
||||
|
||||
elet_vesztve++;
|
||||
|
||||
@@ -9,6 +9,8 @@ public class Energia : MonoBehaviour
|
||||
private int energiasav_index = 0;
|
||||
public bool granatAktivalva = false;
|
||||
|
||||
private jatekmanager jatekmanager;
|
||||
|
||||
public int getEnergiasavIndex() { return energiasav_index; }
|
||||
public void setEnegiasavIndex(int ertek) { energiasav_index = ertek; }
|
||||
|
||||
@@ -18,12 +20,16 @@ public class Energia : MonoBehaviour
|
||||
return; //targy cucc aktivalva egesz korbe nem csokken az energia
|
||||
}
|
||||
|
||||
if (energiasav_index > 30) return;
|
||||
if (getEnergiasavIndex() > 29) {
|
||||
jatekmanager.Instance.jatekosvesztett = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Vesztette);
|
||||
//ha nincs tobb energia vesztes
|
||||
}
|
||||
|
||||
for (int i = 0; i < number; i++) {
|
||||
//if (number + enegiasav_index > energiasav_text.Length) break;
|
||||
if (energiasav_index >= 30) {
|
||||
energiasav_index = 29;
|
||||
if (getEnergiasavIndex() >= 30) {
|
||||
setEnegiasavIndex(29);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
38
Assets/Scripts/Helyszin.cs
Normal file
38
Assets/Scripts/Helyszin.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
|
||||
[System.Serializable]
|
||||
public class Helyszin
|
||||
{
|
||||
[SerializeField] private string helyszinNev;
|
||||
[Range(1,2)] [SerializeField] private int helyszinAktivalasDb;
|
||||
[SerializeField] private TMP_Text[] lepesSzamlalo;
|
||||
[SerializeField] private TMP_Text[] nyomozasJelolo;
|
||||
[SerializeField] private TMP_Text[] ugynokCsapatSzamlalo;
|
||||
[Range(0,2)] [SerializeField] private int energiaKoltseg;
|
||||
[Range(0,2)] [SerializeField] private int akciopontKoltseg;
|
||||
[SerializeField] private string szektor; //alpha | omega
|
||||
[SerializeField] private string alszektor; //nap vagy hold
|
||||
[Range(0,2)][SerializeField] private int x;
|
||||
[Range(0,3)] [SerializeField] private int y;
|
||||
|
||||
public int X { get{ return x;}}
|
||||
public int Y { get{ return y; }}
|
||||
public int EnergiaKoltseg { get{ return energiaKoltseg; }}
|
||||
public int AkciopontKoltseg{ get{ return akciopontKoltseg; }}
|
||||
public TMP_Text[] LepesSzamlalo { get{ return lepesSzamlalo; } set { lepesSzamlalo = value;}}
|
||||
|
||||
|
||||
|
||||
public virtual void Move(){
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
|
||||
}
|
||||
|
||||
public virtual void Aktivalas(){
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Helyszin.cs.meta
Normal file
11
Assets/Scripts/Helyszin.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07569cc61945f524b93b6ba5de48127b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
37
Assets/Scripts/Helyszinaktivalas1.cs
Normal file
37
Assets/Scripts/Helyszinaktivalas1.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using System;
|
||||
|
||||
public class Helyszinaktivalas1 : MonoBehaviour
|
||||
{
|
||||
public Helyszin[] helyszinek;
|
||||
|
||||
private movement movement;
|
||||
|
||||
public void SetLepesSzamlalo(int x, int y, string lepesSzam){
|
||||
foreach(var item in helyszinek){
|
||||
if(item.X == x && item.Y == y){
|
||||
if(item.LepesSzamlalo[0].Equals("")){ //ha nincs meg az elsobe beirva
|
||||
item.LepesSzamlalo[0].text = lepesSzam;
|
||||
}else{
|
||||
item.LepesSzamlalo[1].text = lepesSzam;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void HelyszinAktivalas() {
|
||||
int x = movement.jelenlegi_x - 1;
|
||||
int y = movement.jelenlegi_y - 1;
|
||||
|
||||
foreach (var item in helyszinek){
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
movement = FindObjectOfType<movement>();
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Helyszinaktivalas1.cs.meta
Normal file
11
Assets/Scripts/Helyszinaktivalas1.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cdcf96e9dc11d9945900f6668df2aa49
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
40
Assets/Scripts/Kezdohelyszin.cs
Normal file
40
Assets/Scripts/Kezdohelyszin.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TMPro;
|
||||
|
||||
public class Kezdohelyszin : MonoBehaviour
|
||||
{
|
||||
public SpriteRenderer dice1;
|
||||
public SpriteRenderer dice2;
|
||||
public TMP_Text eredmenyText;
|
||||
public Button nextButton;
|
||||
|
||||
private int random;
|
||||
public static bool kesz = false;
|
||||
|
||||
private Dice dice;
|
||||
|
||||
private void Awake() {
|
||||
dice = FindObjectOfType<Dice>();
|
||||
nextButton.interactable = false;
|
||||
}
|
||||
|
||||
public void KezdoHelyszinSorsolas(int x, int y, string helynev){
|
||||
eredmenyText.text = "";
|
||||
nextButton.interactable = false;
|
||||
|
||||
StartCoroutine(waitForDiceAnimation(helynev));
|
||||
|
||||
dice.callAnimateDice(dice1, x);
|
||||
dice.callAnimateDice(dice2, y);
|
||||
}
|
||||
|
||||
private IEnumerator waitForDiceAnimation(string helynev){
|
||||
yield return new WaitUntil(() => kesz);
|
||||
|
||||
eredmenyText.text = "A kezdőhelyszíned: " + helynev;
|
||||
nextButton.interactable = true;
|
||||
kesz = false;
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Kezdohelyszin.cs.meta
Normal file
11
Assets/Scripts/Kezdohelyszin.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a9617c93d2bf0a4dbfd8f3c5c2aadda
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
17
Assets/Scripts/MessageBox.cs
Normal file
17
Assets/Scripts/MessageBox.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
|
||||
public class MessageBox : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TMP_Text messageBox;
|
||||
|
||||
public void SendMessageToBox(string message){
|
||||
messageBox.text = message;
|
||||
}
|
||||
|
||||
public void ResetMessageBox(){
|
||||
messageBox.text = "";
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/MessageBox.cs.meta
Normal file
11
Assets/Scripts/MessageBox.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c6e47cdfb14d35a4e8ec96d480c37d5f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
19
Assets/Scripts/Sound.cs
Normal file
19
Assets/Scripts/Sound.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
|
||||
[System.Serializable]
|
||||
public class Sound
|
||||
{
|
||||
public string name;
|
||||
public AudioClip clip;
|
||||
[Range(0f, 1f)]
|
||||
public float volume;
|
||||
[Range(0.1f, 3f)]
|
||||
public float pitch;
|
||||
public bool loop;
|
||||
[HideInInspector]
|
||||
public AudioSource source;
|
||||
public AudioMixerGroup outputMixer;
|
||||
}
|
||||
11
Assets/Scripts/Sound.cs.meta
Normal file
11
Assets/Scripts/Sound.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2bad3c18e1bd9a55da1a52c7588f21fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -11,12 +11,15 @@ public class Source : MonoBehaviour
|
||||
private movement movement;
|
||||
public GameObject sourceSprite;
|
||||
private Ugynok ugynok;
|
||||
private jatekmanager jatekmanager;
|
||||
|
||||
|
||||
private bool oneTime = false;
|
||||
|
||||
private void Awake() {
|
||||
movement = FindObjectOfType<movement>();
|
||||
ugynok = FindObjectOfType<Ugynok>();
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
@@ -29,6 +32,7 @@ public class Source : MonoBehaviour
|
||||
private void Update() {
|
||||
if(isNyitva && oszlop != -1 && sor.Count == 1) {
|
||||
sourceRender(oszlop, sor[0]);
|
||||
|
||||
if (!oneTime) {
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
@@ -36,6 +40,7 @@ public class Source : MonoBehaviour
|
||||
}
|
||||
printSourceLocation();
|
||||
oneTime = true;
|
||||
jatekmanager.JatekosVesztett();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,11 @@ public class Targyak : MonoBehaviour
|
||||
private Ugynok ugynok;
|
||||
private Dice dice;
|
||||
private jatekmanager jatekmanager;
|
||||
private MessageBox messageBox;
|
||||
|
||||
public TMP_InputField kocka1ertek;
|
||||
public TMP_InputField kocka2ertek;
|
||||
|
||||
public int ujertek1;
|
||||
public int ujertek2;
|
||||
public int targy_szamlalo = 0;
|
||||
@@ -26,6 +29,9 @@ public class Targyak : MonoBehaviour
|
||||
public int droidgepagyu = 0;
|
||||
public int matavtaviranyito = 0;
|
||||
public int fustgranat = 0;
|
||||
|
||||
[SerializeField] private bool vanUgynok = false;
|
||||
|
||||
public bool lathatatlanOltozetAktivalva = false;
|
||||
public bool matavtaviranyitoAktivalva = false;
|
||||
private int randomszam;
|
||||
@@ -33,14 +39,16 @@ public class Targyak : MonoBehaviour
|
||||
public Button cancelNewValue;
|
||||
|
||||
//targy megszerezve ui
|
||||
public TMP_Text adrenalinMegszerezve;
|
||||
public TMP_Text hackerMegszerezve;
|
||||
public TMP_Text lathatatlanMegszerezve;
|
||||
public TMP_Text droidMegszerezve;
|
||||
public TMP_Text matavMegszerezve;
|
||||
public TMP_Text alomhozoMegszerezve;
|
||||
//TODO: change to searialize field
|
||||
[SerializeField] private TMP_Text adrenalinMegszerezve;
|
||||
[SerializeField] private TMP_Text hackerMegszerezve;
|
||||
[SerializeField] private TMP_Text lathatatlanMegszerezve;
|
||||
[SerializeField] private TMP_Text droidMegszerezve;
|
||||
[SerializeField] private TMP_Text matavMegszerezve;
|
||||
[SerializeField] private TMP_Text alomhozoMegszerezve;
|
||||
|
||||
//targy felhasznalva ui
|
||||
//TODO: change to searialize field
|
||||
public TMP_Text adrenalinFelhasznalva;
|
||||
public TMP_Text hackerFelhasznalva;
|
||||
public TMP_Text lathatatlanFelhasznalva;
|
||||
@@ -48,7 +56,7 @@ public class Targyak : MonoBehaviour
|
||||
public TMP_Text matavFelhasznalva;
|
||||
public TMP_Text alomhozoFelhasznalva;
|
||||
|
||||
public List<string> elerheto_targyak = new List<string>{"Adrenalinloket", "Hacker csatlakozo", "Lathatatlan oltozet", "Droid agyu", "Matav taviranyito", "Alomhozo fustgranat"};
|
||||
[SerializeField] private List<string> elerheto_targyak = new List<string>{"Adrenalinloket", "Hacker csatlakozo", "Lathatatlan oltozet", "Droid agyu", "Matav taviranyito", "Alomhozo fustgranat"};
|
||||
|
||||
private void Awake() {
|
||||
akciok = FindObjectOfType<Akciok>();
|
||||
@@ -59,6 +67,16 @@ public class Targyak : MonoBehaviour
|
||||
ugynok = FindObjectOfType<Ugynok>();
|
||||
dice = FindObjectOfType<Dice>();
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
messageBox = FindObjectOfType<MessageBox>();
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
adrenalinFelhasznalva.gameObject.SetActive(false);
|
||||
hackerFelhasznalva.gameObject.SetActive(false);
|
||||
lathatatlanFelhasznalva.gameObject.SetActive(false);
|
||||
droidFelhasznalva.gameObject.SetActive(false);
|
||||
matavFelhasznalva.gameObject.SetActive(false);
|
||||
alomhozoFelhasznalva.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
public void RandomTargy()
|
||||
@@ -71,27 +89,39 @@ public class Targyak : MonoBehaviour
|
||||
if(elerheto_targyak[randomszam].Equals("Adrenalinloket")){
|
||||
adrenalinMegszerezve.text = "X";
|
||||
adrenalinloket++;
|
||||
adrenalinFelhasznalva.gameObject.SetActive(true);
|
||||
Debug.Log("Kaptal egy AdrenalinLoketet!");
|
||||
messageBox.SendMessageToBox("Kaptal egy AdrenalinLoketet!");
|
||||
}else if(elerheto_targyak[randomszam].Equals("Hacker csatlakozo")){
|
||||
hackerMegszerezve.text = "X";
|
||||
hackercsatlakozo++;
|
||||
hackerFelhasznalva.gameObject.SetActive(true);
|
||||
Debug.Log("Kaptal egy Hacker Csatlakozot!");
|
||||
messageBox.SendMessageToBox("Kaptal egy Hacker Csatlakozot!");
|
||||
}else if(elerheto_targyak[randomszam].Equals("Lathatatlan oltozet")){
|
||||
lathatatlanMegszerezve.text = "X";
|
||||
lathatatlanoltozet++;
|
||||
lathatatlanFelhasznalva.gameObject.SetActive(true);
|
||||
Debug.Log("Kaptal egy Lathatatlan oltozetet!");
|
||||
messageBox.SendMessageToBox("Kaptal egy Lathatatlan oltozetet!");
|
||||
}else if(elerheto_targyak[randomszam].Equals("Droid agyu")){
|
||||
droidMegszerezve.text = "X";
|
||||
droidgepagyu++;
|
||||
droidFelhasznalva.gameObject.SetActive(true);
|
||||
Debug.Log("Kaptal egy Droid-X2 Gepagyut!");
|
||||
messageBox.SendMessageToBox("Kaptal egy Droid-X2 Gepagyut!");
|
||||
}else if(elerheto_targyak[randomszam].Equals("Matav taviranyito")){
|
||||
matavMegszerezve.text = "X";
|
||||
matavtaviranyito++;
|
||||
matavFelhasznalva.gameObject.SetActive(true);
|
||||
Debug.Log("Kaptal egy Matav Taviranyitot!");
|
||||
messageBox.SendMessageToBox("Kaptal egy Matav Taviranyitot!");
|
||||
}else if(elerheto_targyak[randomszam].Equals("Alomhozo fustgranat")){
|
||||
alomhozoMegszerezve.text = "X";
|
||||
fustgranat++;
|
||||
alomhozoFelhasznalva.gameObject.SetActive(true);
|
||||
Debug.Log("Kaptal egy Alomhozo Fustgranatot!");
|
||||
messageBox.SendMessageToBox("Kaptal egy Alomhozo Fustgranatot!");
|
||||
}
|
||||
|
||||
elerheto_targyak.RemoveAt(randomszam); //szedje ki a listabol
|
||||
@@ -175,9 +205,15 @@ public class Targyak : MonoBehaviour
|
||||
}
|
||||
|
||||
public void HackerCsatlakozo() { //kesz
|
||||
if(hackercsatlakozo <= 0){
|
||||
Debug.Log("Nincs ilyen targyad!!");
|
||||
return;
|
||||
}
|
||||
|
||||
//+2 tolteny
|
||||
akciok.Betarazas(2);
|
||||
akciopont.akciopont++; //betarazas miatt egy pont visszaadasa
|
||||
akciok.betarazasDb = 2;
|
||||
akciok.Betarazas();
|
||||
akciopont.UpdateAkciopont(1); //betarazas miatt egy pont visszaadasa
|
||||
//+1 elet
|
||||
elet.Eletplusz();
|
||||
//+1 akcio
|
||||
@@ -192,6 +228,11 @@ public class Targyak : MonoBehaviour
|
||||
}
|
||||
|
||||
public void LathatatlanOltozek() { //kesz
|
||||
if(lathatatlanoltozet <= 0){
|
||||
Debug.Log("Nincs ilyen targyad!!");
|
||||
return;
|
||||
}
|
||||
|
||||
lathatatlanOltozetAktivalva = true;
|
||||
lathatatlanoltozet = 0; //targy elvesztese
|
||||
|
||||
@@ -202,11 +243,60 @@ public class Targyak : MonoBehaviour
|
||||
}
|
||||
|
||||
public void DroidGepagyu() {
|
||||
if(droidgepagyu <= 0){
|
||||
Debug.Log("Nincs ilyen targyad!!");
|
||||
return;
|
||||
}
|
||||
//deaktivalni minden objectet kiveve a ugynok text boxokat es addig nem vissza aktivalni amig nem kattintott ra valamelyikre
|
||||
//ugynok.canKill = true; //barhol meg tud olni ha kattint
|
||||
|
||||
//deaktivalas
|
||||
//jatekmanager.ugynokDeaktivalas(false);
|
||||
|
||||
vanUgynok = false;
|
||||
|
||||
//nezze meg hogy van ugynokcsapat valahol kulonben ne aktivalja
|
||||
foreach(var item in ugynok.oneone){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.onetwo){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.onethree){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.onefour){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.twoone){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.twotwo){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.twothree){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.twofour){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.threeone){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.threetwo){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.threethree){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
foreach(var item in ugynok.threefour){
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6")) vanUgynok = true;
|
||||
}
|
||||
|
||||
if(!vanUgynok){
|
||||
Debug.Log("nincs sehol ugynok csapat");
|
||||
return; //ha nincs sehol ugynok ne fussok le
|
||||
}
|
||||
|
||||
jatekmanager.UpdateGameState(jatekmanager.GameState.Ugynok); //ugynok state (minden kikapcsolva);
|
||||
|
||||
ugynok.droidagyuAktivalva = true;
|
||||
@@ -222,6 +312,11 @@ public class Targyak : MonoBehaviour
|
||||
}
|
||||
|
||||
public void MatavTaviranyito() {
|
||||
if(matavtaviranyito <= 0){
|
||||
Debug.Log("Nincs ilyen targyad!!");
|
||||
return;
|
||||
}
|
||||
|
||||
matavtaviranyitoAktivalva = true;
|
||||
matavtaviranyito = 0; //targy elvesztese
|
||||
|
||||
@@ -232,6 +327,11 @@ public class Targyak : MonoBehaviour
|
||||
}
|
||||
|
||||
public void FustGranat() {
|
||||
if(fustgranat <= 0){
|
||||
Debug.Log("Nincs ilyen targyad!!");
|
||||
return;
|
||||
}
|
||||
|
||||
energia.granatAktivalva = true;
|
||||
fustgranat = 0; //targy elvesztese
|
||||
|
||||
|
||||
@@ -27,33 +27,28 @@ public class TurnManager : MonoBehaviour
|
||||
public void nextTurn() {
|
||||
dice.setLocked(false);
|
||||
dice.dobottEgyszer = false;
|
||||
akciopont.resetAkciopont();
|
||||
energia.csokkenEnergia(upgrade.energia[upgrade.getEnergiaIndex()]);
|
||||
energia.granatAktivalva = false; //ha aktivalva lett a granat a korben deaktivalja
|
||||
turnCounter++;
|
||||
dice.hely1.sprite = null;
|
||||
dice.hely2.sprite = null;
|
||||
dice.ujradobasszamlalo = upgrade.ujradobas[upgrade.getUjradobasIndex()] + 1;
|
||||
dice.diceResult = new int[2];
|
||||
Debug.Log("ujradobasszamlalo: " + dice.ujradobasszamlalo);
|
||||
|
||||
akciopont.resetAkciopont();
|
||||
|
||||
energia.csokkenEnergia(upgrade.energia[upgrade.getEnergiaIndex()]);
|
||||
energia.granatAktivalva = false; //ha aktivalva lett a granat a korben deaktivalja
|
||||
|
||||
turnCounter++;
|
||||
|
||||
jatekmanager.vanertelme = true;
|
||||
jatekmanager.JatekosVesztett();
|
||||
jatekmanager.JatekosNyert();
|
||||
|
||||
if (jatekmanager.jatekosnyert == false && jatekmanager.jatekosvesztett == false)
|
||||
{
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.KorKezdet); //a jatekmanager atvalt a korkezdet eventre
|
||||
|
||||
Debug.Log("kovetkezo kor " + turnCounter);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
if (energiavesztese > 29)
|
||||
{
|
||||
jatekmanager.Instance.UpdateGameState(GameState.Vesztett); //a jatekmanager atvalt a vesztett eventre
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
@@ -7,51 +7,44 @@ using TMPro;
|
||||
public class Ugynok : MonoBehaviour
|
||||
{
|
||||
private Akciok akciok;
|
||||
private Akciopont ap;
|
||||
private Upgrade upgrade;
|
||||
private jatekmanager jatekmanager;
|
||||
private Elet elet;
|
||||
private movement movement;
|
||||
|
||||
public TMP_Text[] oneone;
|
||||
//public BoxCollider2D[] oneoneCollider;
|
||||
public TMP_Text[] twoone;
|
||||
//public BoxCollider2D[] twooneCollider;
|
||||
public TMP_Text[] threeone;
|
||||
//public BoxCollider2D[] threeoneCollider;
|
||||
public TMP_Text[] onetwo;
|
||||
//public BoxCollider2D[] onetwoCollider;
|
||||
public TMP_Text[] twotwo;
|
||||
//public BoxCollider2D[] twotwoCollider;
|
||||
public TMP_Text[] threetwo;
|
||||
//public BoxCollider2D[] threetwoCollider;
|
||||
public TMP_Text[] onethree;
|
||||
//public BoxCollider2D[] onethreeCollider;
|
||||
public TMP_Text[] twothree;
|
||||
//public BoxCollider2D[] twothreeCollider;
|
||||
public TMP_Text[] threethree;
|
||||
//public BoxCollider2D[] threethreeCollider;
|
||||
public TMP_Text[] onefour;
|
||||
//public BoxCollider2D[] onefourCollider;
|
||||
public TMP_Text[] twofour;
|
||||
//public BoxCollider2D[] twofourCollider;
|
||||
public TMP_Text[] threefour;
|
||||
//public BoxCollider2D[] threefourCollider;
|
||||
|
||||
public bool droidagyuAktivalva = false;
|
||||
|
||||
public bool canKill = false;
|
||||
public bool canShoot = false; //harchoz bool
|
||||
[SerializeField] private string[] previus_ugynok_csapatok;
|
||||
private int elozo_x;
|
||||
private int elozo_y ;
|
||||
public void setCanKillTrue(){ canKill = true; }
|
||||
public Camera maincamera;
|
||||
|
||||
private void Awake() {
|
||||
akciok = FindObjectOfType<Akciok>();
|
||||
upgrade = FindObjectOfType<Upgrade>();
|
||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||
movement = FindObjectOfType<movement>();
|
||||
}
|
||||
elet = FindObjectOfType<Elet>();
|
||||
ap = FindObjectOfType<Akciopont>();
|
||||
|
||||
private void Start()
|
||||
{
|
||||
previus_ugynok_csapatok = new string[3];
|
||||
|
||||
//ugynok csapat mezo szoveg kiurites
|
||||
for (int i = 0; i < oneone.Length; i++)
|
||||
{
|
||||
oneone[i].text = "";
|
||||
@@ -102,194 +95,205 @@ public class Ugynok : MonoBehaviour
|
||||
{
|
||||
threefour[i].text = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void UgynokSorsolas(int x, int y){
|
||||
public void UgynokSorsolas(int x, int y, int ugynokSzam = 0){
|
||||
int random;
|
||||
if(ugynokSzam == 0){
|
||||
random = UnityEngine.Random.Range(1,7);
|
||||
}else{
|
||||
random = ugynokSzam;
|
||||
}
|
||||
|
||||
if (x == 1 && y == 1)
|
||||
{
|
||||
if (oneone[0].text.Equals(""))
|
||||
{
|
||||
oneone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
oneone[0].text = random.ToString();
|
||||
}
|
||||
else if (oneone[1].text.Equals(""))
|
||||
{
|
||||
oneone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
oneone[1].text = random.ToString();
|
||||
}
|
||||
else if (oneone[2].text.Equals(""))
|
||||
{
|
||||
oneone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
oneone[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 2)
|
||||
{
|
||||
if (onetwo[0].text.Equals(""))
|
||||
{
|
||||
onetwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onetwo[0].text = random.ToString();
|
||||
}
|
||||
else if (onetwo[1].text.Equals(""))
|
||||
{
|
||||
onetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onetwo[1].text = random.ToString();
|
||||
}
|
||||
else if (onetwo[2].text.Equals(""))
|
||||
{
|
||||
onetwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onetwo[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 3)
|
||||
{
|
||||
if (onethree[0].text.Equals(""))
|
||||
{
|
||||
onethree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onethree[0].text = random.ToString();
|
||||
}
|
||||
else if (onethree[1].text.Equals(""))
|
||||
{
|
||||
onethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onethree[1].text = random.ToString();
|
||||
}
|
||||
else if (onethree[2].text.Equals(""))
|
||||
{
|
||||
onethree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onethree[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 1 && y == 4)
|
||||
{
|
||||
if (onefour[0].text.Equals(""))
|
||||
{
|
||||
onefour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onefour[0].text = random.ToString();
|
||||
}
|
||||
else if (onefour[1].text.Equals(""))
|
||||
{
|
||||
onefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onefour[1].text = random.ToString();
|
||||
}
|
||||
else if (onefour[2].text.Equals(""))
|
||||
{
|
||||
onefour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
onefour[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 1)
|
||||
{
|
||||
if (twoone[0].text.Equals(""))
|
||||
{
|
||||
twoone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twoone[0].text = random.ToString();
|
||||
}
|
||||
else if (twoone[1].text.Equals(""))
|
||||
{
|
||||
twoone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twoone[1].text = random.ToString();
|
||||
}
|
||||
else if (twoone[2].text.Equals(""))
|
||||
{
|
||||
twoone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twoone[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 2)
|
||||
{
|
||||
if (twotwo[0].text.Equals(""))
|
||||
{
|
||||
twotwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twotwo[0].text = random.ToString();
|
||||
}
|
||||
else if (twotwo[1].text.Equals(""))
|
||||
{
|
||||
twotwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twotwo[1].text = random.ToString();
|
||||
}
|
||||
else if (twotwo[2].text.Equals(""))
|
||||
{
|
||||
twotwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twotwo[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 3)
|
||||
{
|
||||
if (twothree[0].text.Equals(""))
|
||||
{
|
||||
twothree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twothree[0].text = random.ToString();
|
||||
}
|
||||
else if (twothree[1].text.Equals(""))
|
||||
{
|
||||
twothree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twothree[1].text = random.ToString();
|
||||
}
|
||||
else if (twothree[2].text.Equals(""))
|
||||
{
|
||||
twothree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twothree[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 2 && y == 4)
|
||||
{
|
||||
if (twofour[0].text.Equals(""))
|
||||
{
|
||||
twofour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twofour[0].text = random.ToString();
|
||||
}
|
||||
else if (twofour[1].text.Equals(""))
|
||||
{
|
||||
twofour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twofour[1].text = random.ToString();
|
||||
}
|
||||
else if (twofour[2].text.Equals(""))
|
||||
{
|
||||
twofour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
twofour[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 1)
|
||||
{
|
||||
if (threeone[0].text.Equals(""))
|
||||
{
|
||||
threeone[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threeone[0].text = random.ToString();
|
||||
}
|
||||
else if (threeone[1].text.Equals(""))
|
||||
{
|
||||
threeone[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threeone[1].text = random.ToString();
|
||||
}
|
||||
else if (threeone[2].text.Equals(""))
|
||||
{
|
||||
threeone[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threeone[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 2)
|
||||
{
|
||||
if (threetwo[0].text.Equals(""))
|
||||
{
|
||||
threetwo[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threetwo[0].text = random.ToString();
|
||||
}
|
||||
else if (threetwo[1].text.Equals(""))
|
||||
{
|
||||
threetwo[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threetwo[1].text = random.ToString();
|
||||
}
|
||||
else if (threetwo[2].text.Equals(""))
|
||||
{
|
||||
threetwo[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threetwo[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 3)
|
||||
{
|
||||
if (threethree[0].text.Equals(""))
|
||||
{
|
||||
threethree[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threethree[0].text = random.ToString();
|
||||
}
|
||||
else if (threethree[1].text.Equals(""))
|
||||
{
|
||||
threethree[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threethree[1].text = random.ToString();
|
||||
}
|
||||
else if (threethree[2].text.Equals(""))
|
||||
{
|
||||
threethree[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threethree[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
else if (x == 3 && y == 4)
|
||||
{
|
||||
if (threefour[0].text.Equals(""))
|
||||
{
|
||||
threefour[0].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threefour[0].text = random.ToString();
|
||||
}
|
||||
else if (threefour[1].text.Equals(""))
|
||||
{
|
||||
threefour[1].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threefour[1].text = random.ToString();
|
||||
}
|
||||
else if (threefour[2].text.Equals(""))
|
||||
{
|
||||
threefour[2].text = UnityEngine.Random.Range(1, 7).ToString();
|
||||
threefour[2].text = random.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void ugynokOles(TMP_Text ugynokText){
|
||||
public void ugynokOles(TMP_Text ugynokText){
|
||||
if(!canKill){
|
||||
Debug.Log("Nem nyomtal a harc gombra!!");
|
||||
return;
|
||||
}
|
||||
|
||||
//string tmp = ugynokText.gameObject.name;
|
||||
string s = ugynokText.gameObject.name;
|
||||
//Debug.Log("gomb name: " + s);
|
||||
@@ -321,483 +325,183 @@ public class Ugynok : MonoBehaviour
|
||||
}
|
||||
|
||||
int ugynokcsapatletszama = int.Parse(ugynokText.text);
|
||||
if(ugynokcsapatletszama > akciok.betarazott_tolteny / upgrade.harc[upgrade.getHarcIndex()]){ //ha nincs eleg tolteny
|
||||
if(ugynokcsapatletszama > akciok.getBetarazottTolteny() / upgrade.harc[upgrade.getHarcIndex()]){ //ha nincs eleg tolteny
|
||||
Debug.Log("nincs eleg tolteny");
|
||||
return;
|
||||
}
|
||||
|
||||
if(ap.getAkciopont() < 2){
|
||||
Debug.Log("nincs eleg ap az oleshez");
|
||||
return;
|
||||
}else{
|
||||
ap.UpdateAkciopont(-2); //harc koltseg
|
||||
}
|
||||
|
||||
akciok.Loves(ugynokcsapatletszama / upgrade.harc[upgrade.getHarcIndex()]);
|
||||
canKill = false;
|
||||
Debug.Log("tolteny szama:" + ugynokcsapatletszama / upgrade.harc[upgrade.getHarcIndex()]);
|
||||
}
|
||||
|
||||
ugynokText.text = "X"; //ugynok csapat megolve
|
||||
|
||||
jatekmanager.JatekosNyert();
|
||||
|
||||
//minden vissza kapcsolasa
|
||||
//jatekmanager.ugynokDeaktivalas(true);
|
||||
|
||||
jatekmanager.UpdateGameState(jatekmanager.GameState.Akcio); //miutan vegzett menjen az akcio state-re
|
||||
droidagyuAktivalva = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* private void Update()
|
||||
{
|
||||
if(canShoot){
|
||||
if(oneone[0].text.Equals("")){
|
||||
|
||||
public void ugynokMegolveElozoHelyen(){
|
||||
if(elozo_x != movement.jelenlegi_x || elozo_y != movement.jelenlegi_y){
|
||||
foreach(var item in previus_ugynok_csapatok){
|
||||
if(!item.Equals("")){
|
||||
Debug.Log("|"+item+"|");
|
||||
//ha nem ures a text vagyis volt atirva szamra nezze meg hogy X-e
|
||||
//if(!item.Equals("x") || !item.Equals("X"))
|
||||
if(item.Equals("1") || item.Equals("2") || item.Equals("3") || item.Equals("4") || item.Equals("5") || item.Equals("6"))
|
||||
{
|
||||
Debug.Log("belep ugynok item: |"+item+"|");
|
||||
//vonjon le egy eletet
|
||||
elet.Eletvesztes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(elozo_x == 1 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = oneone[i].text;
|
||||
}
|
||||
}else if(elozo_x == 1 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = onetwo[i].text;
|
||||
}
|
||||
}else if(elozo_x == 1 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = onethree[i].text;
|
||||
}
|
||||
}else if(elozo_x == 1 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = onefour[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twoone[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twotwo[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twothree[i].text;
|
||||
}
|
||||
}else if(elozo_x == 2 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = twofour[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threeone[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threetwo[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threethree[i].text;
|
||||
}
|
||||
}else if(elozo_x == 3 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
previus_ugynok_csapatok[i] = threefour[i].text;
|
||||
}
|
||||
}
|
||||
|
||||
if (canKill)
|
||||
{
|
||||
//check for collider onclick then x out tmp text then set canKill false
|
||||
//check if text field is empty
|
||||
//oneone
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
elozo_x = movement.jelenlegi_x;
|
||||
elozo_y = movement.jelenlegi_y;
|
||||
}
|
||||
|
||||
public void setElozoHelyszin(int x, int y){
|
||||
elozo_x = x;
|
||||
elozo_y = y;
|
||||
|
||||
if(elozo_x == 1 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!oneone[0].text.Equals(""))
|
||||
{
|
||||
oneone[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = oneone[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 1 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!oneone[1].text.Equals(""))
|
||||
{
|
||||
oneone[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = onetwo[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && oneoneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 1 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!oneone[2].text.Equals(""))
|
||||
{
|
||||
oneone[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = onethree[i].text;
|
||||
}
|
||||
//onetwo
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 1 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onetwo[0].text.Equals(""))
|
||||
{
|
||||
onetwo[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = onefour[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onetwo[1].text.Equals(""))
|
||||
{
|
||||
onetwo[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twoone[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onetwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onetwo[2].text.Equals(""))
|
||||
{
|
||||
onetwo[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twotwo[i].text;
|
||||
}
|
||||
//onethree
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onethree[0].text.Equals(""))
|
||||
{
|
||||
onethree[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twothree[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 2 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onethree[1].text.Equals(""))
|
||||
{
|
||||
onethree[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = twofour[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onethreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 1){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onethree[2].text.Equals(""))
|
||||
{
|
||||
onethree[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threeone[i].text;
|
||||
}
|
||||
//onefour
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 2){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onefour[0].text.Equals(""))
|
||||
{
|
||||
onefour[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threetwo[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 3){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onefour[1].text.Equals(""))
|
||||
{
|
||||
onefour[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threethree[i].text;
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && onefourCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
}else if(elozo_x == 3 && elozo_y == 4){
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (!onefour[2].text.Equals(""))
|
||||
{
|
||||
onefour[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twoone
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twoone[0].text.Equals(""))
|
||||
{
|
||||
twoone[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twoone[1].text.Equals(""))
|
||||
{
|
||||
twoone[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twooneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twoone[2].text.Equals(""))
|
||||
{
|
||||
twoone[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twotwo
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twotwo[0].text.Equals(""))
|
||||
{
|
||||
twotwo[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twotwo[1].text.Equals(""))
|
||||
{
|
||||
twotwo[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twotwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twotwo[2].text.Equals(""))
|
||||
{
|
||||
twotwo[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twothree
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twothree[0].text.Equals(""))
|
||||
{
|
||||
twothree[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twothree[1].text.Equals(""))
|
||||
{
|
||||
twothree[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twothreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twothree[2].text.Equals(""))
|
||||
{
|
||||
twothree[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//twofour
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && twofourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twofour[0].text.Equals(""))
|
||||
{
|
||||
twofour[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twofourCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twofour[1].text.Equals(""))
|
||||
{
|
||||
twofour[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && twofourCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!twofour[2].text.Equals(""))
|
||||
{
|
||||
twofour[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//threeone
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && threeoneCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threeone[0].text.Equals(""))
|
||||
{
|
||||
threeone[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threeoneCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threeone[1].text.Equals(""))
|
||||
{
|
||||
threeone[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threeoneCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threeone[2].text.Equals(""))
|
||||
{
|
||||
threeone[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//threetwo
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && threetwoCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threetwo[0].text.Equals(""))
|
||||
{
|
||||
threetwo[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threetwoCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threetwo[1].text.Equals(""))
|
||||
{
|
||||
threetwo[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threetwoCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threetwo[2].text.Equals(""))
|
||||
{
|
||||
threetwo[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//threethree
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && threethreeCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threethree[0].text.Equals(""))
|
||||
{
|
||||
threethree[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threethreeCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threethree[1].text.Equals(""))
|
||||
{
|
||||
threethree[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threethreeCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threethree[2].text.Equals(""))
|
||||
{
|
||||
threethree[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
//threefour
|
||||
if (Input.GetKeyDown(KeyCode.Mouse0) && threefourCollider[0].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threefour[0].text.Equals(""))
|
||||
{
|
||||
threefour[0].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threefourCollider[1].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threefour[1].text.Equals(""))
|
||||
{
|
||||
threefour[1].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Mouse0) && threefourCollider[2].OverlapPoint(maincamera.ScreenToWorldPoint(Input.mousePosition)))
|
||||
{
|
||||
if (!threefour[2].text.Equals(""))
|
||||
{
|
||||
threefour[2].text = "X";
|
||||
canKill = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("itt nincs ugynok csapat!!!");
|
||||
}
|
||||
previus_ugynok_csapatok[i] = threefour[i].text;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
@@ -6,7 +6,7 @@ using System.Threading;
|
||||
|
||||
public class fps : MonoBehaviour
|
||||
{
|
||||
public TMP_Text fpsText;
|
||||
public TMP_Text fpsText; //ideiglenesen megvaltoztatva az uzenet boxra!!
|
||||
[SerializeField] private float _hudRefreshRate = 1f;
|
||||
private float _timer;
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
public List<TMP_Text> twotwoText;
|
||||
public TMP_Text twothreeText;
|
||||
public TMP_Text twofourText;
|
||||
|
||||
public TMP_Text threeoneText;
|
||||
public List<TMP_Text> threetwoText;
|
||||
public TMP_Text threethreeText;
|
||||
@@ -47,9 +46,6 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
energia = FindObjectOfType<Energia>();
|
||||
|
||||
helyszinAktivalasSzamlalo = new int[12];
|
||||
for (int i = 0; i < helyszinAktivalasSzamlalo.Length; i++){
|
||||
helyszinAktivalasSzamlalo[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void HelyszinAktivalas()
|
||||
@@ -58,6 +54,9 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
if (movement.jelenlegi_x == 1 && movement.jelenlegi_y == 1)
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[0] == 2) return; //ketszer lehet aktivalni
|
||||
|
||||
if((akciopont.getAkciopont() < 1 || energia.getEnergiasavIndex() > 28) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
//ugynokcsapat oles barhol tolteny nelkul
|
||||
targyak.DroidGepagyu();
|
||||
|
||||
@@ -73,12 +72,15 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
if (movement.jelenlegi_x == 2 && movement.jelenlegi_y == 1)
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[1] == 1) return; //egyszer lehet aktivalni
|
||||
|
||||
if((energia.getEnergiasavIndex() > 27) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
upgrade.canUpgrade = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||
|
||||
if(!targyak.matavtaviranyitoAktivalva){
|
||||
//akciopont.akciopont++;
|
||||
akciopont.UpdateAkciopont(1);
|
||||
//akciopont.UpdateAkciopont(1);
|
||||
energia.csokkenEnergia(2);
|
||||
}
|
||||
|
||||
@@ -90,7 +92,8 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[2] == 1) return; //egyszer lehet aktivalni
|
||||
|
||||
//movement.helyreTeleport(); //hogy teleportal (jo?)
|
||||
if((energia.getEnergiasavIndex() > 28) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
targyak.lathatatlanOltozetAktivalva = true; //mint a targy
|
||||
if(!targyak.matavtaviranyitoAktivalva){
|
||||
energia.csokkenEnergia(1);
|
||||
@@ -104,9 +107,12 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[3] == 1) return; //egyszer lehet aktivalni
|
||||
|
||||
if((akciopont.getAkciopont() < 1 || energia.getEnergiasavIndex() > 28) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
//kapsz egy targyat
|
||||
targyak.RandomTargy();
|
||||
targyak.targy_szamlalo++;
|
||||
|
||||
if(!targyak.matavtaviranyitoAktivalva){
|
||||
akciopont.UpdateAkciopont(-1);
|
||||
energia.csokkenEnergia(1);
|
||||
@@ -120,6 +126,8 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[4] == 2) return; //ketszer lehet aktivalni
|
||||
|
||||
if((akciopont.getAkciopont() < 1) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
///dobj paros +3 ap paratlan -1 energia
|
||||
int eredmeny = UnityEngine.Random.Range(1,7);
|
||||
Debug.Log("Dobas eredmeny: " + eredmeny);
|
||||
@@ -138,7 +146,7 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
//6-es mezo
|
||||
if (movement.jelenlegi_x == 3 && movement.jelenlegi_y == 2)
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[5] == 2) return; //ketszer lehet aktivalni
|
||||
if(helyszinAktivalasSzamlalo[5] == 2) return; //ketszer lehet aktivalni
|
||||
|
||||
//+1 akcio
|
||||
akciopont.UpdateAkciopont(1);
|
||||
@@ -151,6 +159,8 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[6] == 2) return; //ketszer lehet aktivalni
|
||||
|
||||
if((akciopont.getAkciopont() < 2) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
//1 fejlesztes ingyen
|
||||
upgrade.canUpgrade = true;
|
||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||
@@ -181,6 +191,8 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[8] == 1) return; //egyszer lehet aktivalni
|
||||
|
||||
if((akciopont.getAkciopont() < 2) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
targyak.RandomTargy();
|
||||
targyak.targy_szamlalo++;
|
||||
if(!targyak.matavtaviranyitoAktivalva){
|
||||
@@ -195,8 +207,12 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[9] == 2) return; //ketszer lehet aktivalni
|
||||
|
||||
if((akciopont.getAkciopont() < 1) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
//+4 tolteny
|
||||
akciok.Betarazas(4); //ha nincs negy darab tolteny toltse be a maradekot vagy ne lehessen aktivalni a helyszint?
|
||||
akciok.betarazasDb = 2;
|
||||
akciok.Betarazas(); //ha nincs negy darab tolteny toltse be a maradekot vagy ne lehessen aktivalni a helyszint?
|
||||
|
||||
if(!targyak.matavtaviranyitoAktivalva){
|
||||
akciopont.UpdateAkciopont(0); //betarazasba levon egyet (csak placeholder)
|
||||
}
|
||||
@@ -209,6 +225,8 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[10] == 1) return; //egyszer lehet aktivalni
|
||||
|
||||
if((energia.getEnergiasavIndex() > 28) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
//Dobj! Megkapod a targyat.
|
||||
targyak.RandomTargy();
|
||||
targyak.targy_szamlalo++;
|
||||
@@ -224,6 +242,8 @@ public class helyszinaktivalas : MonoBehaviour
|
||||
{
|
||||
if(helyszinAktivalasSzamlalo[11] == 2) return; //ketszer lehet aktivalni
|
||||
|
||||
if((akciopont.getAkciopont() < 1) && !targyak.matavtaviranyitoAktivalva) return;
|
||||
|
||||
//+1 elet
|
||||
elet.Eletplusz();
|
||||
if(!targyak.matavtaviranyitoAktivalva){
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Sockets;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class jatekmanager : MonoBehaviour
|
||||
{
|
||||
@@ -23,7 +23,7 @@ public class jatekmanager : MonoBehaviour
|
||||
public GameObject hackeles;
|
||||
public GameObject rolldice;
|
||||
public GameObject test;
|
||||
|
||||
public GameObject harc;
|
||||
|
||||
//script-ek implementalasa
|
||||
private Elet elet;
|
||||
@@ -35,6 +35,9 @@ public class jatekmanager : MonoBehaviour
|
||||
private movement movement;
|
||||
private TurnManager turnManager;
|
||||
private Source source;
|
||||
private vegpontozas vegpontozas;
|
||||
private AudioManager audioManager;
|
||||
private MessageBox messageBox;
|
||||
|
||||
//ügynökcsapatok implementálása
|
||||
public TMP_Text[] oneone;
|
||||
@@ -58,9 +61,37 @@ public class jatekmanager : MonoBehaviour
|
||||
public static event Action<GameState> OnGameStateChanged;
|
||||
public Button helyszinaktivalasBtn;
|
||||
|
||||
public GameObject pauseMenuUI;
|
||||
public static bool GameIsPlaying = true;
|
||||
|
||||
private GameState previousGameState;
|
||||
|
||||
public TMP_Text nev;
|
||||
|
||||
public GameObject mainCanvas;
|
||||
public GameObject helyszinCanvas;
|
||||
public GameObject helyszinSorsolasCanvas;
|
||||
public TMP_Text helyszinEredmenyText;
|
||||
public Button helyszinEredmenyBtn;
|
||||
public GameObject palyaSprite;
|
||||
public GameObject playerSprite;
|
||||
|
||||
public GameObject eredmenyPanel;
|
||||
public TMP_Text eredmenyText;
|
||||
public TMP_Text pontszam;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
//ideiglenes amig rajovok kell e az uj helyszinaktivalas
|
||||
FindObjectOfType<Helyszinaktivalas1>().enabled = false;
|
||||
|
||||
Instance = this;
|
||||
|
||||
mainCanvas.SetActive(false); //helyszin sorsolas animacio miatt
|
||||
helyszinCanvas.SetActive(false);
|
||||
helyszinSorsolasCanvas.SetActive(true);
|
||||
palyaSprite.SetActive(false);
|
||||
playerSprite.SetActive(false);
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@@ -74,13 +105,24 @@ public class jatekmanager : MonoBehaviour
|
||||
movement = FindObjectOfType<movement>();
|
||||
turnManager = FindObjectOfType<TurnManager>();
|
||||
source = FindObjectOfType<Source>();
|
||||
vegpontozas = FindObjectOfType<vegpontozas>();
|
||||
messageBox = FindObjectOfType<MessageBox>();
|
||||
|
||||
UpdateGameState(GameState.KorKezdet);
|
||||
//hatterzene lejatszas
|
||||
audioManager = FindObjectOfType<AudioManager>();
|
||||
audioManager.Play("BackgroundMusic");
|
||||
|
||||
UpdateGameState(GameState.Nev);
|
||||
|
||||
#if !UNITY_EDITOR
|
||||
test.SetActive(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
public void UpdateGameState(GameState newState)
|
||||
{
|
||||
State = newState;
|
||||
//State = newState;
|
||||
Debug.Log("<color=orange>New state: " + newState + "</color>");
|
||||
|
||||
switch (newState)
|
||||
{
|
||||
@@ -99,6 +141,14 @@ public class jatekmanager : MonoBehaviour
|
||||
case GameState.Vesztette:
|
||||
HandleVesztette();
|
||||
break;
|
||||
case GameState.UgynokValasztas:
|
||||
HandleUgynokValasztas();
|
||||
break;
|
||||
case GameState.Nev:
|
||||
HandleNev();
|
||||
break;
|
||||
case GameState.Pause:
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(newState), newState, null);
|
||||
}
|
||||
@@ -112,11 +162,68 @@ public class jatekmanager : MonoBehaviour
|
||||
Akcio,
|
||||
Fejlesztes,
|
||||
Ugynok,
|
||||
Vesztette
|
||||
Vesztette,
|
||||
UgynokValasztas,
|
||||
Nev,
|
||||
Pause
|
||||
}
|
||||
|
||||
public void Resume()
|
||||
{
|
||||
pauseMenuUI.SetActive(false);
|
||||
SetTimeScale(1f); //normal ido visszainditasa
|
||||
GameIsPlaying = true;
|
||||
audioManager.SetMainVolume(0f);
|
||||
Instance.UpdateGameState(previousGameState); //elozo statere menjen vissza
|
||||
}
|
||||
|
||||
public void Pause()
|
||||
{
|
||||
//uzenetBox.text = "A játék meg lett állítva";
|
||||
messageBox.SendMessageToBox("A játék meg lett állítva");
|
||||
pauseMenuUI.SetActive(true);
|
||||
//ido megallitasa hogy megalljon a jatek
|
||||
SetTimeScale(0f);
|
||||
GameIsPlaying = false;
|
||||
audioManager.SetMainVolume(-80f); //hangerot teljesen levenni a masteren
|
||||
previousGameState = State;
|
||||
Instance.UpdateGameState(jatekmanager.GameState.Pause);
|
||||
}
|
||||
|
||||
public void Quit()
|
||||
{
|
||||
//helyszinEredmenyBtn.interactable = false;
|
||||
//helyszinEredmenyText.gameObject.SetActive(false);
|
||||
SetTimeScale(1f);
|
||||
SceneManager.LoadScene("MainMenu");
|
||||
}
|
||||
|
||||
public void SetTimeScale(float time){
|
||||
Time.timeScale = time;
|
||||
}
|
||||
|
||||
public IEnumerator atlatszo(Button gomb)
|
||||
{
|
||||
while (gomb.GetComponent<CanvasGroup>().alpha > 0.25f)
|
||||
{
|
||||
gomb.GetComponent<CanvasGroup>().alpha -= 0.5f;
|
||||
yield return new WaitForSecondsRealtime(0.01f);
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator megjelen(Button gomb)
|
||||
{
|
||||
while (gomb.GetComponent<CanvasGroup>().alpha < 1f)
|
||||
{
|
||||
gomb.GetComponent<CanvasGroup>().alpha += 0.5f;
|
||||
yield return new WaitForSecondsRealtime(0.01f);
|
||||
}
|
||||
}
|
||||
|
||||
private async void HandleKorkezdet()
|
||||
{
|
||||
messageBox.SendMessageToBox("Dobj a kockával");
|
||||
|
||||
rolldice.SetActive(true);
|
||||
|
||||
energiafejlesztés.SetActive(false);
|
||||
@@ -129,6 +236,7 @@ public class jatekmanager : MonoBehaviour
|
||||
nyomozas.SetActive(false);
|
||||
hackeles.SetActive(false);
|
||||
helyszinaktivalasBtn.gameObject.SetActive(false);
|
||||
harc.SetActive(false);
|
||||
//test.SetActive(false);
|
||||
|
||||
//ha ugynok state-el vegezne kapcsoljon vissza mindent
|
||||
@@ -159,9 +267,83 @@ public class jatekmanager : MonoBehaviour
|
||||
Debug.Log((upgrade.getUjradobasIndex() + 1) + " ; ennyi dobásod van összesen");
|
||||
}
|
||||
|
||||
private async void HandleUgynokValasztas()
|
||||
{
|
||||
//uzenetBox.text = "Válaszd ki az ügynökcsapat létszámát, az egyik kockára nyomva. (a kisebb választása 1 energia vesztésével jár)";
|
||||
messageBox.SendMessageToBox("Válaszd ki az ügynökcsapat létszámát, az egyik kockára nyomva. (a kisebb választása 1 energia vesztésével jár)");
|
||||
|
||||
//kapcsolja ki addig a mezoket amig nem valasztott ugynokcsapat szamot
|
||||
movement.oneone_Collider.gameObject.SetActive(false);
|
||||
movement.onetwo_Collider.gameObject.SetActive(false);
|
||||
movement.onethree_Collider.gameObject.SetActive(false);
|
||||
movement.onefour_Collider.gameObject.SetActive(false);
|
||||
movement.twoone_Collider.gameObject.SetActive(false);
|
||||
movement.twotwo_Collider.gameObject.SetActive(false);
|
||||
movement.twothree_Collider.gameObject.SetActive(false);
|
||||
movement.twofour_Collider.gameObject.SetActive(false);
|
||||
movement.threeone_Collider.gameObject.SetActive(false);
|
||||
movement.threetwo_Collider.gameObject.SetActive(false);
|
||||
movement.threethree_Collider.gameObject.SetActive(false);
|
||||
movement.threefour_Collider.gameObject.SetActive(false);
|
||||
|
||||
kovetkezokor.SetActive(false);
|
||||
betarazas.SetActive(false);
|
||||
nyomozas.SetActive(false);
|
||||
hackeles.SetActive(false);
|
||||
helyszinaktivalasBtn.gameObject.SetActive(false);
|
||||
harc.SetActive(false);
|
||||
rolldice.SetActive(false);
|
||||
}
|
||||
|
||||
public void NevValasztasUtan()
|
||||
{
|
||||
if (!nev.text.Equals("") && dice.diceResult[0] == 0) //dice result == 0 ne tudjon tobbszori nev beiras utan ujradobni
|
||||
{
|
||||
UpdateGameState(GameState.KorKezdet);
|
||||
dice.CallRenderDice(true);
|
||||
messageBox.SendMessageToBox("Válaszd ki az ügynökcsapat létszámát");
|
||||
}
|
||||
}
|
||||
|
||||
private async void HandleNev()
|
||||
{
|
||||
//uzenetBox.text = "Írd be a neved a név mezőbe";
|
||||
messageBox.SendMessageToBox("Írd be a neved a név mezőbe");
|
||||
|
||||
movement.oneone_Collider.gameObject.SetActive(false);
|
||||
movement.onetwo_Collider.gameObject.SetActive(false);
|
||||
movement.onethree_Collider.gameObject.SetActive(false);
|
||||
movement.onefour_Collider.gameObject.SetActive(false);
|
||||
movement.twoone_Collider.gameObject.SetActive(false);
|
||||
movement.twotwo_Collider.gameObject.SetActive(false);
|
||||
movement.twothree_Collider.gameObject.SetActive(false);
|
||||
movement.twofour_Collider.gameObject.SetActive(false);
|
||||
movement.threeone_Collider.gameObject.SetActive(false);
|
||||
movement.threetwo_Collider.gameObject.SetActive(false);
|
||||
movement.threethree_Collider.gameObject.SetActive(false);
|
||||
movement.threefour_Collider.gameObject.SetActive(false);
|
||||
|
||||
energiafejlesztés.SetActive(false);
|
||||
akciofejlesztés.SetActive(false);
|
||||
harcfejlesztés.SetActive(false);
|
||||
ujradobasfejlesztés.SetActive(false);
|
||||
hackfejlesztés.SetActive(false);
|
||||
kovetkezokor.SetActive(false);
|
||||
betarazas.SetActive(false);
|
||||
nyomozas.SetActive(false);
|
||||
hackeles.SetActive(false);
|
||||
helyszinaktivalasBtn.gameObject.SetActive(false);
|
||||
harc.SetActive(false);
|
||||
//test.SetActive(false);
|
||||
rolldice.SetActive(false);
|
||||
}
|
||||
|
||||
|
||||
private async void HandleFejlesztes()
|
||||
{
|
||||
//uzenetBox.text = "Válassz fejlesztést";
|
||||
messageBox.SendMessageToBox("Válassz fejlesztést");
|
||||
|
||||
energiafejlesztés.SetActive(true);
|
||||
akciofejlesztés.SetActive(true);
|
||||
harcfejlesztés.SetActive(true);
|
||||
@@ -170,6 +352,7 @@ public class jatekmanager : MonoBehaviour
|
||||
kovetkezokor.SetActive(false);
|
||||
//rolldice.SetActive(false);
|
||||
helyszinaktivalasBtn.gameObject.SetActive(false);
|
||||
harc.SetActive(false);
|
||||
|
||||
betarazas.SetActive(false);
|
||||
nyomozas.SetActive(false);
|
||||
@@ -178,6 +361,9 @@ public class jatekmanager : MonoBehaviour
|
||||
|
||||
private async void HandleAkcio()
|
||||
{
|
||||
//uzenetBox.text = "Válassz akciókat!";
|
||||
messageBox.SendMessageToBox("Válassz akciókat vagy dobj a kockával!");
|
||||
|
||||
//itt a movement bekapcsol
|
||||
kovetkezokor.SetActive(true);
|
||||
betarazas.SetActive(true);
|
||||
@@ -189,18 +375,58 @@ public class jatekmanager : MonoBehaviour
|
||||
harcfejlesztés.SetActive(false);
|
||||
ujradobasfejlesztés.SetActive(false);
|
||||
hackfejlesztés.SetActive(false);
|
||||
harc.SetActive(true);
|
||||
|
||||
kovetkezokor.SetActive(true);
|
||||
|
||||
//rolldice.SetActive(false);
|
||||
//ha ugynok valasztasbol jon kapcsolaja vissza a collidereket
|
||||
movement.oneone_Collider.gameObject.SetActive(true);
|
||||
movement.onetwo_Collider.gameObject.SetActive(true);
|
||||
movement.onethree_Collider.gameObject.SetActive(true);
|
||||
movement.onefour_Collider.gameObject.SetActive(true);
|
||||
movement.twoone_Collider.gameObject.SetActive(true);
|
||||
movement.twotwo_Collider.gameObject.SetActive(true);
|
||||
movement.twothree_Collider.gameObject.SetActive(true);
|
||||
movement.twofour_Collider.gameObject.SetActive(true);
|
||||
movement.threeone_Collider.gameObject.SetActive(true);
|
||||
movement.threetwo_Collider.gameObject.SetActive(true);
|
||||
movement.threethree_Collider.gameObject.SetActive(true);
|
||||
movement.threefour_Collider.gameObject.SetActive(true);
|
||||
|
||||
rolldice.SetActive(true);
|
||||
}
|
||||
|
||||
private async void HandleVesztette()
|
||||
{
|
||||
//vegpontozas.pontkiiras();
|
||||
JatekosNyert();
|
||||
JatekosVesztett();
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
/*if(jatekosvesztett){
|
||||
SceneManager.LoadScene("JatekosVesztett");
|
||||
}
|
||||
if(jatekosnyert){
|
||||
SceneManager.LoadScene("JatekosNyert");
|
||||
}*/
|
||||
|
||||
if (Input.GetKeyDown(KeyCode.Escape))
|
||||
{
|
||||
if (GameIsPlaying)
|
||||
{
|
||||
Pause();
|
||||
Debug.Log("Game is paused");
|
||||
}
|
||||
else
|
||||
{
|
||||
Resume();
|
||||
Debug.Log("Game is playing");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async void ugynokDeaktivalas(bool bekapcsolas)
|
||||
{
|
||||
energiafejlesztés.SetActive(bekapcsolas);
|
||||
@@ -233,6 +459,7 @@ public class jatekmanager : MonoBehaviour
|
||||
movement.threetwo_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.threethree_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.threefour_Collider.gameObject.SetActive(bekapcsolas);
|
||||
harc.SetActive(bekapcsolas);
|
||||
|
||||
targyak.hackerFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||
targyak.lathatatlanFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||
@@ -244,106 +471,23 @@ public class jatekmanager : MonoBehaviour
|
||||
dice.dice2btnBtn.gameObject.SetActive(bekapcsolas);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
// Update is called once per frame
|
||||
IEnumerator MyCoroutine()
|
||||
{
|
||||
//amig a játékos vesztett bool nem egyenlo true-val vagy a nyert bool nem egyenlo true-val
|
||||
//while (jatekosnyert != true || jatekosvesztett != true)
|
||||
//{
|
||||
//a jatekos mikor belép semmit ne tudjon csinálni csak dobni a kockával, hogy elkezdje a játékot
|
||||
energiafejlesztés.SetActive(false);
|
||||
akciofejlesztés.SetActive(false);
|
||||
harcfejlesztés.SetActive(false);
|
||||
ujradobasfejlesztés.SetActive(false);
|
||||
hackfejlesztés.SetActive(false);
|
||||
kovetkezokor.SetActive(false);
|
||||
betarazas.SetActive(false);
|
||||
nyomozas.SetActive(false);
|
||||
hackeles.SetActive(false);
|
||||
//test.SetActive(false);
|
||||
|
||||
|
||||
|
||||
|
||||
//&& dice.getLocked() != true
|
||||
|
||||
//ez rossz!!!!
|
||||
//while (dice.dobott < upgrade.getUjradobasIndex() + 1 )
|
||||
//{
|
||||
|
||||
//eddig újradobhat
|
||||
//}
|
||||
|
||||
|
||||
yield return new WaitUntil(() => dice.getLocked() == true);
|
||||
|
||||
|
||||
while (vanertelme == true)
|
||||
{
|
||||
//a játékos választ a két érték között
|
||||
if (upgrade.canUpgrade == true)
|
||||
{
|
||||
//ha a kisebbet választotta akkor jelennek meg a fejlesztés gombjai
|
||||
energiafejlesztés.SetActive(true);
|
||||
akciofejlesztés.SetActive(true);
|
||||
harcfejlesztés.SetActive(true);
|
||||
ujradobasfejlesztés.SetActive(true);
|
||||
hackfejlesztés.SetActive(true);
|
||||
kovetkezokor.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
//ha a nagyobbat választotta akkor jelennek meg az akciók gombjai
|
||||
|
||||
//itt a movement bekapcsol
|
||||
kovetkezokor.SetActive(true);
|
||||
betarazas.SetActive(true);
|
||||
nyomozas.SetActive(true);
|
||||
hackeles.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//itt az akciopont elérte a 0-át
|
||||
//movement kikapcs
|
||||
energiafejlesztés.SetActive(false);
|
||||
akciofejlesztés.SetActive(false);
|
||||
harcfejlesztés.SetActive(false);
|
||||
ujradobasfejlesztés.SetActive(false);
|
||||
hackfejlesztés.SetActive(false);
|
||||
//rolldice.SetActive(false);
|
||||
betarazas.SetActive(false);
|
||||
nyomozas.SetActive(false);
|
||||
hackeles.SetActive(false);
|
||||
//test.SetActive(false);
|
||||
kovetkezokor.SetActive(true);
|
||||
|
||||
//amint rányom a kör vége gombra 0 legyen az akciópont és megint csak a dobás legyen elérhető
|
||||
|
||||
|
||||
|
||||
//}
|
||||
|
||||
//JatekosNyert();
|
||||
//JatekosVesztett();
|
||||
|
||||
} */
|
||||
|
||||
public void JatekosNyert()
|
||||
{
|
||||
if (source.isNyitva == true && source.oszlop == movement.jelenlegi_y && source.sor[0] == movement.jelenlegi_x) //+ ugynokcsapat oles a helyszinen
|
||||
Debug.Log("Játékos nyerésének vizsgálata.");
|
||||
Debug.Log("A forrás oszlopa:" + source.oszlop);
|
||||
Debug.Log("A forrás sora:" + source.sor[0]);
|
||||
//Debug.Log("");
|
||||
Debug.Log("A te jelenlegi oszlopod:" + movement.jelenlegi_y);
|
||||
Debug.Log("A te jelenlegi sorod:" + movement.jelenlegi_x);
|
||||
if (source.isNyitva == true && source.oszlop == movement.jelenlegi_x && source.sor[0] == movement.jelenlegi_y) //+ ugynokcsapat oles a helyszinen
|
||||
{
|
||||
Debug.Log("A forrás ki van nyitva és ott állsz ahol a forrás is van.");
|
||||
if (movement.jelenlegi_x == 1 && movement.jelenlegi_y == 1)
|
||||
{
|
||||
if (oneone[0].text.Equals("X") && oneone[1].text.Equals("X") && oneone[2].text.Equals("X"))
|
||||
{
|
||||
jatekosnyert = true;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
if (movement.jelenlegi_x == 1 && movement.jelenlegi_y == 2)
|
||||
@@ -425,14 +569,24 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
if(jatekosnyert){
|
||||
SceneManager.LoadScene("JatekosNyert");
|
||||
if (jatekosnyert)
|
||||
{
|
||||
//vegpontozas.pontkiiras();
|
||||
//SceneManager.LoadScene("JatekosNyert");
|
||||
eredmenyText.text = "Nyertél";
|
||||
pontszam.text = "Pontszámod: " + vegpontozas.OsszpontSzamalas().ToString();
|
||||
eredmenyPanel.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("Nem nyert a játékos ebben a körben");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void JatekosVesztett()
|
||||
{
|
||||
Debug.Log("Játékos vesztésének vizsgálata.");
|
||||
//ha kinyilik a forras de mar voltal ott ketszer
|
||||
if (source.isNyitva == true)
|
||||
{
|
||||
@@ -446,11 +600,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 2 && source.oszlop == 1)
|
||||
if (source.sor[0] == 1 && source.oszlop == 2)
|
||||
{
|
||||
if (movement.feketepiaclepes2.activeSelf == true)
|
||||
{
|
||||
@@ -460,11 +614,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 3 && source.oszlop == 1)
|
||||
if (source.sor[0] == 1 && source.oszlop == 3)
|
||||
{
|
||||
if (movement.metrolepes2.activeSelf == true)
|
||||
{
|
||||
@@ -474,11 +628,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 1 && source.oszlop == 2)
|
||||
if (source.sor[0] == 2 && source.oszlop == 1)
|
||||
{
|
||||
if (movement.szervereklepes2.activeSelf == true)
|
||||
{
|
||||
@@ -488,7 +642,7 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -502,11 +656,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 3 && source.oszlop == 2)
|
||||
if (source.sor[0] == 2 && source.oszlop == 3)
|
||||
{
|
||||
if (movement.feltoltolepes2.activeSelf == true)
|
||||
{
|
||||
@@ -516,11 +670,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 1 && source.oszlop == 3)
|
||||
if (source.sor[0] == 3 && source.oszlop == 1)
|
||||
{
|
||||
if (movement.kutatolaborlepes2.activeSelf == true)
|
||||
{
|
||||
@@ -530,11 +684,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 2 && source.oszlop == 3)
|
||||
if (source.sor[0] == 3 && source.oszlop == 2)
|
||||
{
|
||||
if (movement.kriptoklublepes2.activeSelf == true)
|
||||
{
|
||||
@@ -544,7 +698,7 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -558,11 +712,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 1 && source.oszlop == 4)
|
||||
if (source.sor[0] == 4 && source.oszlop == 1)
|
||||
{
|
||||
if (movement.hadiuzemlepes2.activeSelf == true)
|
||||
{
|
||||
@@ -572,11 +726,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 2 && source.oszlop == 4)
|
||||
if (source.sor[0] == 4 && source.oszlop == 2)
|
||||
{
|
||||
if (movement.konyvtarlepes2.activeSelf == true)
|
||||
{
|
||||
@@ -586,11 +740,11 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (source.sor[0] == 3 && source.oszlop == 4)
|
||||
if (source.sor[0] == 4 && source.oszlop == 3)
|
||||
{
|
||||
if (movement.korhazlepes2.activeSelf == true)
|
||||
{
|
||||
@@ -600,7 +754,7 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
jatekosvesztett = false;
|
||||
jatekosvesztett = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -696,8 +850,18 @@ public class jatekmanager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
if(jatekosvesztett){
|
||||
SceneManager.LoadScene("JatekosVesztett");
|
||||
if (jatekosvesztett)
|
||||
{
|
||||
//vegpontozas.pontkiiras();
|
||||
//SceneManager.LoadScene("JatekosVesztett");
|
||||
eredmenyText.text = "Vesztettél";
|
||||
pontszam.text = "Pontszámod: " + vegpontozas.OsszpontSzamalas().ToString();
|
||||
eredmenyPanel.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("Jelenleg itt állsz: " + movement.jelenlegi_x + ". sor, " + movement.jelenlegi_y + ". oszlop");
|
||||
Debug.Log("A játékos nem vesztett ebben a körben.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,8 @@ using UnityEngine;
|
||||
|
||||
public class FrameRateSetter : MonoBehaviour
|
||||
{
|
||||
//mobil miatt volt (30fps) van ertelme? nincs sok mozgas es animacio \\ ha lesz animacio vissza rakhato
|
||||
private void Awake() {
|
||||
Application.targetFrameRate = 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,8 +7,19 @@ public class MainMenu : MonoBehaviour
|
||||
{
|
||||
public GameObject MainMenuObj;
|
||||
public GameObject OptionsMenu;
|
||||
public GameObject CreditsMenuObj;
|
||||
public GameObject VideoButton;
|
||||
|
||||
private AudioManager audioManager;
|
||||
|
||||
private void Awake() {
|
||||
audioManager = FindObjectOfType<AudioManager>();
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
//audioManager.Play("MenuMusic");
|
||||
}
|
||||
|
||||
public void PlayGame()
|
||||
{
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
||||
@@ -36,4 +47,9 @@ public class MainMenu : MonoBehaviour
|
||||
VideoButton.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public void CreditsMenu(){
|
||||
MainMenuObj.SetActive(false);
|
||||
CreditsMenuObj.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,19 +38,6 @@ public class OptionMenu : MonoBehaviour
|
||||
Screen.SetResolution(resolution.width, resolution.height, Screen.fullScreen);
|
||||
}
|
||||
|
||||
//Audio
|
||||
public AudioMixer mixer;
|
||||
|
||||
public void SetMainVolume(float mainVolume) {
|
||||
mixer.SetFloat("Master", mainVolume);
|
||||
}
|
||||
public void SetMusicVolume(float musicVolume) {
|
||||
mixer.SetFloat("Music", musicVolume);
|
||||
}
|
||||
public void SetSfxVolume(float sfxVolume) {
|
||||
mixer.SetFloat("Sfx", sfxVolume);
|
||||
}
|
||||
|
||||
//Quality
|
||||
public void setQuality(int qualityIndex) {
|
||||
QualitySettings.SetQualityLevel(qualityIndex);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,60 @@ guid: 413457e37755a704786899a2420c6b9a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
defaultReferences:
|
||||
- THE_Camera: {instanceID: 0}
|
||||
- player: {instanceID: 0}
|
||||
- oneone: {instanceID: 0}
|
||||
- oneone_Collider: {instanceID: 0}
|
||||
- eromulepes1: {instanceID: 0}
|
||||
- eromulepes2: {instanceID: 0}
|
||||
- twoone: {instanceID: 0}
|
||||
- twoone_Collider: {instanceID: 0}
|
||||
- feketepiaclepes1: {instanceID: 0}
|
||||
- feketepiaclepes2: {instanceID: 0}
|
||||
- threeone: {instanceID: 0}
|
||||
- threeone_Collider: {instanceID: 0}
|
||||
- metrolepes1: {instanceID: 0}
|
||||
- metrolepes2: {instanceID: 0}
|
||||
- onetwo: {instanceID: 0}
|
||||
- onetwo_Collider: {instanceID: 0}
|
||||
- szervereklepes1: {instanceID: 0}
|
||||
- szervereklepes2: {instanceID: 0}
|
||||
- twotwo: {instanceID: 0}
|
||||
- twotwo_Collider: {instanceID: 0}
|
||||
- kingcasinolepes1: {instanceID: 0}
|
||||
- kingcasinolepes2: {instanceID: 0}
|
||||
- threetwo: {instanceID: 0}
|
||||
- threetwo_Collider: {instanceID: 0}
|
||||
- feltoltolepes1: {instanceID: 0}
|
||||
- feltoltolepes2: {instanceID: 0}
|
||||
- onethree: {instanceID: 0}
|
||||
- onethree_Collider: {instanceID: 0}
|
||||
- kutatolaborlepes1: {instanceID: 0}
|
||||
- kutatolaborlepes2: {instanceID: 0}
|
||||
- twothree: {instanceID: 0}
|
||||
- twothree_Collider: {instanceID: 0}
|
||||
- kriptoklublepes1: {instanceID: 0}
|
||||
- kriptoklublepes2: {instanceID: 0}
|
||||
- threethree: {instanceID: 0}
|
||||
- threethree_Collider: {instanceID: 0}
|
||||
- cyberplazalepes1: {instanceID: 0}
|
||||
- cyberplazalepes2: {instanceID: 0}
|
||||
- onefour: {instanceID: 0}
|
||||
- onefour_Collider: {instanceID: 0}
|
||||
- hadiuzemlepes1: {instanceID: 0}
|
||||
- hadiuzemlepes2: {instanceID: 0}
|
||||
- twofour: {instanceID: 0}
|
||||
- twofour_Collider: {instanceID: 0}
|
||||
- konyvtarlepes1: {instanceID: 0}
|
||||
- konyvtarlepes2: {instanceID: 0}
|
||||
- threefour: {instanceID: 0}
|
||||
- threefour_Collider: {instanceID: 0}
|
||||
- korhazlepes1: {instanceID: 0}
|
||||
- korhazlepes2: {instanceID: 0}
|
||||
- confirmMove: {instanceID: 0}
|
||||
- cancelMove: {instanceID: 0}
|
||||
- parentMoveConfirm: {instanceID: 0}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
|
||||
@@ -2,7 +2,10 @@ using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
using TMPro;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class vegpontozas : MonoBehaviour
|
||||
{
|
||||
@@ -11,9 +14,10 @@ public class vegpontozas : MonoBehaviour
|
||||
private Targyak targyak;
|
||||
private Akciok akciok;
|
||||
private Elet elet;
|
||||
public bool foundsource;
|
||||
|
||||
public TMP_Text szoveg;
|
||||
|
||||
int osszpont = 0;
|
||||
public int osszpont = 0;
|
||||
int tolteny;
|
||||
int megszerzetttargyak;
|
||||
int fejlesztespont;
|
||||
@@ -27,18 +31,18 @@ public class vegpontozas : MonoBehaviour
|
||||
targyak = FindObjectOfType<Targyak>();
|
||||
akciok = FindObjectOfType<Akciok>();
|
||||
elet = FindObjectOfType<Elet>();
|
||||
foundsource = false;
|
||||
}
|
||||
|
||||
public int OsszpontSzamalas()
|
||||
{
|
||||
energiapont = energia.energiasav_text.Length - (energia.getEnergiasavIndex() + 1);
|
||||
megmaradtelet = elet.elet;
|
||||
tolteny = akciok.betarazott_tolteny;
|
||||
tolteny = akciok.getBetarazottTolteny();
|
||||
megszerzetttargyak = targyak.targy_szamlalo;
|
||||
fejlesztespont = FejlesztesPont.fejlesztes_szamlalo;
|
||||
|
||||
osszpont = (energiapont * 2) + (megmaradtelet * 2) + (fejlesztespont / 3) + (tolteny / 2) + megszerzetttargyak;
|
||||
//textMesh.text = "Összesen ennyi pontot szereztél:" + osszpont;
|
||||
return osszpont;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -61,7 +61,7 @@ Material:
|
||||
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||
- _UnderlayColor: {r: 1, g: 0.0141509175, b: 0.0141509175, a: 0.5}
|
||||
m_BuildTextureStacks: []
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
"dependencies": {
|
||||
"com.unity.collab-proxy": "1.17.7",
|
||||
"com.unity.feature.2d": "1.0.0",
|
||||
"com.unity.ide.visualstudio": "2.0.16",
|
||||
"com.unity.ide.visualstudio": "2.0.17",
|
||||
"com.unity.ide.vscode": "1.2.5",
|
||||
"com.unity.render-pipelines.universal": "12.1.8",
|
||||
"com.unity.test-framework": "1.1.33",
|
||||
"com.unity.textmeshpro": "3.0.6",
|
||||
"com.unity.timeline": "1.6.4",
|
||||
"com.unity.toolchain.linux-x86_64": "2.0.4",
|
||||
"com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.4",
|
||||
"com.unity.ugui": "1.0.0",
|
||||
"com.unity.visualscripting": "1.7.8",
|
||||
"com.unity.modules.ai": "1.0.0",
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
}
|
||||
},
|
||||
"com.unity.ide.visualstudio": {
|
||||
"version": "2.0.16",
|
||||
"version": "2.0.17",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
@@ -260,6 +260,16 @@
|
||||
},
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.toolchain.win-x86_64-linux-x86_64": {
|
||||
"version": "2.0.4",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
"com.unity.sysroot": "2.0.5",
|
||||
"com.unity.sysroot.linux-x86_64": "2.0.4"
|
||||
},
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.ugui": {
|
||||
"version": "1.0.0",
|
||||
"depth": 0,
|
||||
|
||||
@@ -11,10 +11,4 @@ EditorBuildSettings:
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/Jatek.unity
|
||||
guid: 2cda990e2423bbf4892e6590ba056729
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/JatekosNyert.unity
|
||||
guid: a108b4cd028a15b2ea25558d17a38712
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/JatekosVesztett.unity
|
||||
guid: d535560266fd1da128ac0ee38d7f347a
|
||||
m_configObjects: {}
|
||||
|
||||
@@ -134,7 +134,7 @@ PlayerSettings:
|
||||
16:10: 1
|
||||
16:9: 1
|
||||
Others: 1
|
||||
bundleVersion: 0.8
|
||||
bundleVersion: 0.9.2.1
|
||||
preloadedAssets: []
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
@@ -766,7 +766,8 @@ PlayerSettings:
|
||||
scriptingDefineSymbols: {}
|
||||
additionalCompilerArguments: {}
|
||||
platformArchitecture: {}
|
||||
scriptingBackend: {}
|
||||
scriptingBackend:
|
||||
Standalone: 1
|
||||
il2cppCompilerConfiguration: {}
|
||||
managedStrippingLevel: {}
|
||||
incrementalIl2cppBuild: {}
|
||||
|
||||
@@ -41,3 +41,6 @@ TagManager:
|
||||
- name: Default
|
||||
uniqueID: 0
|
||||
locked: 0
|
||||
- name: Kezdohelyszin
|
||||
uniqueID: 2685889865
|
||||
locked: 0
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# findthesource
|
||||
Find the source (Találd meg a forrást) nevű játék digitális implementációja Unity-ben
|
||||
Find the source nevű játék digitális implementációja Unity-ben
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!162 &1
|
||||
EditorUserSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 4
|
||||
m_ConfigSettings:
|
||||
RecentlyUsedSceneGuid-0:
|
||||
value: 57500d5456505f0b5d085f2714255944104f1d797d717e3278711f61b3e6626d
|
||||
flags: 0
|
||||
RecentlyUsedSceneGuid-1:
|
||||
value: 07040753500359095b580a2641275e41444f19297c2d2363752d4a35b1b46339
|
||||
flags: 0
|
||||
RecentlyUsedSceneGuid-2:
|
||||
value: 0200045e07010a5f5d5c542341765d4213164a7f797d7e347c7e1c60bab7656a
|
||||
flags: 0
|
||||
RecentlyUsedSceneGuid-3:
|
||||
value: 515250075c0c595e5f5a5e71122159444e4e4a2f7a7d7f602f284d66b4b76661
|
||||
flags: 0
|
||||
UnityRemoteCompression:
|
||||
value: 29617121
|
||||
flags: 0
|
||||
UnityRemoteDevice:
|
||||
value: 530104565d04580b405e5c7244770b43464749097d70766108
|
||||
flags: 0
|
||||
UnityRemoteResolution:
|
||||
value: 275e4308165c135e
|
||||
flags: 0
|
||||
vcSharedLogLevel:
|
||||
value: 0d5e400f0650
|
||||
flags: 0
|
||||
m_VCAutomaticAdd: 1
|
||||
m_VCDebugCom: 0
|
||||
m_VCDebugCmd: 0
|
||||
m_VCDebugOut: 0
|
||||
m_SemanticMergeMode: 2
|
||||
m_DesiredImportWorkerCount: 3
|
||||
m_StandbyImportWorkerCount: 2
|
||||
m_IdleImportWorkerShutdownDelay: 60000
|
||||
m_VCShowFailedCheckout: 1
|
||||
m_VCOverwriteFailedCheckoutAssets: 1
|
||||
m_VCProjectOverlayIcons: 1
|
||||
m_VCHierarchyOverlayIcons: 1
|
||||
m_VCOtherOverlayIcons: 1
|
||||
m_VCAllowAsyncUpdate: 1
|
||||
m_ArtifactGarbageCollection: 1
|
||||
@@ -1,901 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &1
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Children:
|
||||
- {fileID: 3}
|
||||
- {fileID: 12}
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 30
|
||||
width: 1366
|
||||
height: 622
|
||||
m_MinSize: {x: 300, y: 200}
|
||||
m_MaxSize: {x: 24288, y: 16192}
|
||||
vertical: 0
|
||||
controlID: 166
|
||||
--- !u!114 &2
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Game
|
||||
m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 225
|
||||
y: 86
|
||||
width: 831
|
||||
height: 356
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
m_SaveData: []
|
||||
m_SerializedViewNames: []
|
||||
m_SerializedViewValues: []
|
||||
m_PlayModeViewName: GameView
|
||||
m_ShowGizmos: 0
|
||||
m_TargetDisplay: 0
|
||||
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_TargetSize: {x: 3840, y: 2160}
|
||||
m_TextureFilterMode: 0
|
||||
m_TextureHideFlags: 61
|
||||
m_RenderIMGUI: 1
|
||||
m_EnterPlayModeBehavior: 1
|
||||
m_UseMipMap: 0
|
||||
m_VSyncEnabled: 0
|
||||
m_Gizmos: 0
|
||||
m_Stats: 0
|
||||
m_SelectedSizes: 06000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
m_ZoomArea:
|
||||
m_HRangeLocked: 0
|
||||
m_VRangeLocked: 0
|
||||
hZoomLockedByDefault: 0
|
||||
vZoomLockedByDefault: 0
|
||||
m_HBaseRangeMin: -1920
|
||||
m_HBaseRangeMax: 1920
|
||||
m_VBaseRangeMin: -1080
|
||||
m_VBaseRangeMax: 1080
|
||||
m_HAllowExceedBaseRangeMin: 1
|
||||
m_HAllowExceedBaseRangeMax: 1
|
||||
m_VAllowExceedBaseRangeMin: 1
|
||||
m_VAllowExceedBaseRangeMax: 1
|
||||
m_ScaleWithWindow: 0
|
||||
m_HSlider: 0
|
||||
m_VSlider: 0
|
||||
m_IgnoreScrollWheelUntilClicked: 0
|
||||
m_EnableMouseInput: 1
|
||||
m_EnableSliderZoomHorizontal: 0
|
||||
m_EnableSliderZoomVertical: 0
|
||||
m_UniformScale: 1
|
||||
m_UpDirection: 1
|
||||
m_DrawArea:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 21
|
||||
width: 831
|
||||
height: 335
|
||||
m_Scale: {x: 0.1550926, y: 0.1550926}
|
||||
m_Translation: {x: 415.5, y: 167.5}
|
||||
m_MarginLeft: 0
|
||||
m_MarginRight: 0
|
||||
m_MarginTop: 0
|
||||
m_MarginBottom: 0
|
||||
m_LastShownAreaInsideMargins:
|
||||
serializedVersion: 2
|
||||
x: -2679.0447
|
||||
y: -1080
|
||||
width: 5358.0894
|
||||
height: 2160
|
||||
m_MinimalGUI: 1
|
||||
m_defaultScale: 0.1550926
|
||||
m_LastWindowPixelSize: {x: 831, y: 356}
|
||||
m_ClearInEditMode: 1
|
||||
m_NoCameraWarning: 1
|
||||
m_LowResolutionForAspectRatios: 01000000000000000000
|
||||
m_XRRenderMode: 0
|
||||
m_RenderTexture: {fileID: 0}
|
||||
--- !u!114 &3
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Children:
|
||||
- {fileID: 4}
|
||||
- {fileID: 9}
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1058
|
||||
height: 622
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 16192, y: 16192}
|
||||
vertical: 1
|
||||
controlID: 167
|
||||
--- !u!114 &4
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Children:
|
||||
- {fileID: 5}
|
||||
- {fileID: 7}
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1058
|
||||
height: 377
|
||||
m_MinSize: {x: 200, y: 100}
|
||||
m_MaxSize: {x: 16192, y: 8096}
|
||||
vertical: 0
|
||||
controlID: 168
|
||||
--- !u!114 &5
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 225
|
||||
height: 377
|
||||
m_MinSize: {x: 201, y: 221}
|
||||
m_MaxSize: {x: 4001, y: 4021}
|
||||
m_ActualView: {fileID: 6}
|
||||
m_Panes:
|
||||
- {fileID: 6}
|
||||
m_Selected: 0
|
||||
m_LastSelected: 0
|
||||
--- !u!114 &6
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Hierarchy
|
||||
m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 86
|
||||
width: 224
|
||||
height: 356
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
m_SaveData: []
|
||||
m_SceneHierarchy:
|
||||
m_TreeViewState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 58faffff
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
m_OriginalName:
|
||||
m_EditFieldRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 0
|
||||
height: 0
|
||||
m_UserData: 0
|
||||
m_IsWaitingForDelay: 0
|
||||
m_IsRenaming: 0
|
||||
m_OriginalEventType: 11
|
||||
m_IsRenamingFilename: 0
|
||||
m_ClientGUIView: {fileID: 5}
|
||||
m_SearchString:
|
||||
m_ExpandedScenes: []
|
||||
m_CurrenRootInstanceID: 0
|
||||
m_LockTracker:
|
||||
m_IsLocked: 0
|
||||
m_CurrentSortingName: TransformSorting
|
||||
m_WindowGUID: 4c969a2b90040154d917609493e03593
|
||||
--- !u!114 &7
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: GameView
|
||||
m_EditorClassIdentifier:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 225
|
||||
y: 0
|
||||
width: 833
|
||||
height: 377
|
||||
m_MinSize: {x: 202, y: 221}
|
||||
m_MaxSize: {x: 4002, y: 4021}
|
||||
m_ActualView: {fileID: 2}
|
||||
m_Panes:
|
||||
- {fileID: 8}
|
||||
- {fileID: 2}
|
||||
m_Selected: 1
|
||||
m_LastSelected: 0
|
||||
--- !u!114 &8
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Scene
|
||||
m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 225
|
||||
y: 86
|
||||
width: 831
|
||||
height: 356
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
m_SaveData:
|
||||
- dockPosition: 0
|
||||
containerId: overlay-toolbar__top
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 1
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: -101, y: -26}
|
||||
snapCorner: 3
|
||||
id: Tool Settings
|
||||
index: 0
|
||||
layout: 1
|
||||
- dockPosition: 0
|
||||
containerId: overlay-toolbar__top
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 1
|
||||
snapOffset: {x: -141, y: 149}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 1
|
||||
id: unity-grid-and-snap-toolbar
|
||||
index: 1
|
||||
layout: 1
|
||||
- dockPosition: 1
|
||||
containerId: overlay-toolbar__top
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 1
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: unity-scene-view-toolbar
|
||||
index: 0
|
||||
layout: 1
|
||||
- dockPosition: 1
|
||||
containerId: overlay-toolbar__top
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 1
|
||||
id: unity-search-toolbar
|
||||
index: 1
|
||||
layout: 1
|
||||
- dockPosition: 0
|
||||
containerId: overlay-container--left
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 1
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: unity-transform-toolbar
|
||||
index: 0
|
||||
layout: 2
|
||||
- dockPosition: 0
|
||||
containerId: overlay-container--left
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 1
|
||||
snapOffset: {x: 0, y: 197}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: unity-component-tools
|
||||
index: 1
|
||||
layout: 2
|
||||
- dockPosition: 0
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 1
|
||||
snapOffset: {x: 67.5, y: 86}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Orientation
|
||||
index: 0
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Light Settings
|
||||
index: 0
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Camera
|
||||
index: 1
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Cloth Constraints
|
||||
index: 2
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Cloth Collisions
|
||||
index: 3
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Navmesh Display
|
||||
index: 4
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Agent Display
|
||||
index: 5
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Obstacle Display
|
||||
index: 6
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Occlusion Culling
|
||||
index: 7
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Physics Debugger
|
||||
index: 8
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Scene Visibility
|
||||
index: 9
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Particles
|
||||
index: 10
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Tilemap
|
||||
index: 11
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-container--right
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Tilemap Palette Helper
|
||||
index: 12
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-toolbar__top
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Open Tile Palette
|
||||
index: 2
|
||||
layout: 4
|
||||
- dockPosition: 1
|
||||
containerId: overlay-toolbar__top
|
||||
floating: 0
|
||||
collapsed: 0
|
||||
displayed: 0
|
||||
snapOffset: {x: 0, y: 0}
|
||||
snapOffsetDelta: {x: 0, y: 0}
|
||||
snapCorner: 0
|
||||
id: Scene View/Tilemap Focus
|
||||
index: 3
|
||||
layout: 4
|
||||
m_WindowGUID: cc27987af1a868c49b0894db9c0f5429
|
||||
m_Gizmos: 1
|
||||
m_OverrideSceneCullingMask: 6917529027641081856
|
||||
m_SceneIsLit: 0
|
||||
m_SceneLighting: 1
|
||||
m_2DMode: 1
|
||||
m_isRotationLocked: 0
|
||||
m_PlayAudio: 0
|
||||
m_AudioPlay: 0
|
||||
m_Position:
|
||||
m_Target: {x: -4.4946966, y: 0.05774405, z: -2.1177318}
|
||||
speed: 2
|
||||
m_Value: {x: -4.4946966, y: 0.05774405, z: -2.1177318}
|
||||
m_RenderMode: 0
|
||||
m_CameraMode:
|
||||
drawMode: 0
|
||||
name: Shaded
|
||||
section: Shading Mode
|
||||
m_ValidateTrueMetals: 0
|
||||
m_DoValidateTrueMetals: 0
|
||||
m_ExposureSliderValue: 0
|
||||
m_SceneViewState:
|
||||
m_AlwaysRefresh: 0
|
||||
showFog: 1
|
||||
showSkybox: 1
|
||||
showFlares: 1
|
||||
showImageEffects: 1
|
||||
showParticleSystems: 1
|
||||
showVisualEffectGraphs: 1
|
||||
m_FxEnabled: 1
|
||||
m_Grid:
|
||||
xGrid:
|
||||
m_Fade:
|
||||
m_Target: 0
|
||||
speed: 2
|
||||
m_Value: 0
|
||||
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
|
||||
m_Pivot: {x: 0, y: 0, z: 0}
|
||||
m_Size: {x: 0, y: 0}
|
||||
yGrid:
|
||||
m_Fade:
|
||||
m_Target: 0
|
||||
speed: 2
|
||||
m_Value: 0
|
||||
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
|
||||
m_Pivot: {x: 0, y: 0, z: 0}
|
||||
m_Size: {x: 1, y: 1}
|
||||
zGrid:
|
||||
m_Fade:
|
||||
m_Target: 1
|
||||
speed: 2
|
||||
m_Value: 1
|
||||
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
|
||||
m_Pivot: {x: 0, y: 0, z: 0}
|
||||
m_Size: {x: 1, y: 1}
|
||||
m_ShowGrid: 1
|
||||
m_GridAxis: 1
|
||||
m_gridOpacity: 0.5
|
||||
m_Rotation:
|
||||
m_Target: {x: 0, y: 0, z: 0, w: 1}
|
||||
speed: 2
|
||||
m_Value: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_Size:
|
||||
m_Target: 10.402437
|
||||
speed: 2
|
||||
m_Value: 10.402437
|
||||
m_Ortho:
|
||||
m_Target: 1
|
||||
speed: 2
|
||||
m_Value: 1
|
||||
m_CameraSettings:
|
||||
m_Speed: 1
|
||||
m_SpeedNormalized: 0.5
|
||||
m_SpeedMin: 0.001
|
||||
m_SpeedMax: 2
|
||||
m_EasingEnabled: 1
|
||||
m_EasingDuration: 0.4
|
||||
m_AccelerationEnabled: 1
|
||||
m_FieldOfViewHorizontalOrVertical: 60
|
||||
m_NearClip: 0.03
|
||||
m_FarClip: 10000
|
||||
m_DynamicClip: 1
|
||||
m_OcclusionCulling: 0
|
||||
m_LastSceneViewRotation: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
|
||||
m_LastSceneViewOrtho: 0
|
||||
m_ReplacementShader: {fileID: 0}
|
||||
m_ReplacementString:
|
||||
m_SceneVisActive: 1
|
||||
m_LastLockedObject: {fileID: 0}
|
||||
m_ViewIsLockedToObject: 0
|
||||
--- !u!114 &9
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: ConsoleWindow
|
||||
m_EditorClassIdentifier:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 377
|
||||
width: 1058
|
||||
height: 245
|
||||
m_MinSize: {x: 101, y: 121}
|
||||
m_MaxSize: {x: 4001, y: 4021}
|
||||
m_ActualView: {fileID: 11}
|
||||
m_Panes:
|
||||
- {fileID: 10}
|
||||
- {fileID: 11}
|
||||
m_Selected: 1
|
||||
m_LastSelected: 0
|
||||
--- !u!114 &10
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_MinSize: {x: 230, y: 250}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
m_TitleContent:
|
||||
m_Text: Project
|
||||
m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 463
|
||||
width: 1057
|
||||
height: 224
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
m_SaveData: []
|
||||
m_SearchFilter:
|
||||
m_NameFilter:
|
||||
m_ClassNames: []
|
||||
m_AssetLabels: []
|
||||
m_AssetBundleNames: []
|
||||
m_VersionControlStates: []
|
||||
m_SoftLockControlStates: []
|
||||
m_ReferencingInstanceIDs:
|
||||
m_SceneHandles:
|
||||
m_ShowAllHits: 0
|
||||
m_SkipHidden: 0
|
||||
m_SearchArea: 1
|
||||
m_Folders:
|
||||
- Assets/Scripts
|
||||
m_Globs: []
|
||||
m_OriginalText:
|
||||
m_ViewMode: 1
|
||||
m_StartGridSize: 66
|
||||
m_LastFolders:
|
||||
- Assets/Scripts
|
||||
m_LastFoldersGridSize: 66
|
||||
m_LastProjectPath: /home/tom/Documents/dev/find the source
|
||||
m_LockTracker:
|
||||
m_IsLocked: 0
|
||||
m_FolderTreeState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs: bc690000
|
||||
m_LastClickedID: 27068
|
||||
m_ExpandedIDs: 00000000b669000000ca9a3b
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
m_OriginalName:
|
||||
m_EditFieldRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 0
|
||||
height: 0
|
||||
m_UserData: 0
|
||||
m_IsWaitingForDelay: 0
|
||||
m_IsRenaming: 0
|
||||
m_OriginalEventType: 11
|
||||
m_IsRenamingFilename: 1
|
||||
m_ClientGUIView: {fileID: 9}
|
||||
m_SearchString:
|
||||
m_CreateAssetUtility:
|
||||
m_EndAction: {fileID: 0}
|
||||
m_InstanceID: 0
|
||||
m_Path:
|
||||
m_Icon: {fileID: 0}
|
||||
m_ResourceFile:
|
||||
m_AssetTreeState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 00000000b669000000ca9a3b
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
m_OriginalName:
|
||||
m_EditFieldRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 0
|
||||
height: 0
|
||||
m_UserData: 0
|
||||
m_IsWaitingForDelay: 0
|
||||
m_IsRenaming: 0
|
||||
m_OriginalEventType: 11
|
||||
m_IsRenamingFilename: 1
|
||||
m_ClientGUIView: {fileID: 0}
|
||||
m_SearchString:
|
||||
m_CreateAssetUtility:
|
||||
m_EndAction: {fileID: 0}
|
||||
m_InstanceID: 0
|
||||
m_Path:
|
||||
m_Icon: {fileID: 0}
|
||||
m_ResourceFile:
|
||||
m_ListAreaState:
|
||||
m_SelectedInstanceIDs:
|
||||
m_LastClickedInstanceID: 0
|
||||
m_HadKeyboardFocusLastEvent: 0
|
||||
m_ExpandedInstanceIDs: c623000000000000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
m_OriginalName:
|
||||
m_EditFieldRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 0
|
||||
height: 0
|
||||
m_UserData: 0
|
||||
m_IsWaitingForDelay: 0
|
||||
m_IsRenaming: 0
|
||||
m_OriginalEventType: 11
|
||||
m_IsRenamingFilename: 1
|
||||
m_ClientGUIView: {fileID: 0}
|
||||
m_CreateAssetUtility:
|
||||
m_EndAction: {fileID: 0}
|
||||
m_InstanceID: 0
|
||||
m_Path:
|
||||
m_Icon: {fileID: 0}
|
||||
m_ResourceFile:
|
||||
m_NewAssetIndexInList: -1
|
||||
m_ScrollPosition: {x: 0, y: 34}
|
||||
m_GridSize: 66
|
||||
m_SkipHiddenPackages: 0
|
||||
m_DirectoriesAreaWidth: 193
|
||||
--- !u!114 &11
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_MinSize: {x: 100, y: 100}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Console
|
||||
m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 463
|
||||
width: 1057
|
||||
height: 224
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
m_SaveData: []
|
||||
--- !u!114 &12
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: InspectorWindow
|
||||
m_EditorClassIdentifier:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 1058
|
||||
y: 0
|
||||
width: 308
|
||||
height: 622
|
||||
m_MinSize: {x: 276, y: 71}
|
||||
m_MaxSize: {x: 4001, y: 4021}
|
||||
m_ActualView: {fileID: 13}
|
||||
m_Panes:
|
||||
- {fileID: 13}
|
||||
m_Selected: 0
|
||||
m_LastSelected: 0
|
||||
--- !u!114 &13
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_MinSize: {x: 275, y: 50}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_TitleContent:
|
||||
m_Text: Inspector
|
||||
m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 1058
|
||||
y: 86
|
||||
width: 307
|
||||
height: 601
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
m_SaveData: []
|
||||
m_ObjectsLockedBeforeSerialization: []
|
||||
m_InstanceIDsLockedBeforeSerialization:
|
||||
m_PreviewResizer:
|
||||
m_CachedPref: -160
|
||||
m_ControlHash: -371814159
|
||||
m_PrefName: Preview_InspectorPreview
|
||||
m_LastInspectedObjectInstanceID: -1
|
||||
m_LastVerticalScrollValue: 0
|
||||
m_GlobalObjectId:
|
||||
m_InspectorMode: 0
|
||||
m_LockTracker:
|
||||
m_IsLocked: 0
|
||||
m_PreviewWindow: {fileID: 0}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "Assets",
|
||||
"roots": ["Assets"],
|
||||
"includes": [],
|
||||
"excludes": [],
|
||||
"options": {
|
||||
"types": true,
|
||||
"properties": true,
|
||||
"extended": false,
|
||||
"dependencies": false
|
||||
},
|
||||
"baseScore": 999
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
trackSelection = true
|
||||
fetchPreview = true
|
||||
defaultFlags = 0
|
||||
keepOpen = false
|
||||
queryFolder = "Assets"
|
||||
onBoardingDoNotAskAgain = true
|
||||
showPackageIndexes = false
|
||||
showStatusBar = false
|
||||
scopes = {
|
||||
}
|
||||
providers = {
|
||||
packages = {
|
||||
active = true
|
||||
priority = 90
|
||||
defaultAction = null
|
||||
}
|
||||
log = {
|
||||
active = false
|
||||
priority = 210
|
||||
defaultAction = null
|
||||
}
|
||||
store = {
|
||||
active = true
|
||||
priority = 100
|
||||
defaultAction = null
|
||||
}
|
||||
scene = {
|
||||
active = true
|
||||
priority = 50
|
||||
defaultAction = null
|
||||
}
|
||||
performance = {
|
||||
active = false
|
||||
priority = 100
|
||||
defaultAction = null
|
||||
}
|
||||
find = {
|
||||
active = true
|
||||
priority = 25
|
||||
defaultAction = null
|
||||
}
|
||||
asset = {
|
||||
active = true
|
||||
priority = 25
|
||||
defaultAction = null
|
||||
}
|
||||
adb = {
|
||||
active = false
|
||||
priority = 2500
|
||||
defaultAction = null
|
||||
}
|
||||
}
|
||||
objectSelectors = {
|
||||
}
|
||||
recentSearches = [
|
||||
]
|
||||
searchItemFavorites = [
|
||||
]
|
||||
savedSearchesSortOrder = 0
|
||||
showSavedSearchPanel = false
|
||||
expandedQueries = [
|
||||
]
|
||||
queryBuilder = false
|
||||
ignoredProperties = "id;name;classname;imagecontentshash"
|
||||
helperWidgetCurrentArea = "all"
|
||||
disabledIndexers = ""
|
||||
Reference in New Issue
Block a user