Compare commits
37 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 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,6 +9,7 @@
|
|||||||
/[Bb]uilds/
|
/[Bb]uilds/
|
||||||
/[Ll]ogs/
|
/[Ll]ogs/
|
||||||
/[Mm]emoryCaptures/
|
/[Mm]emoryCaptures/
|
||||||
|
/[Uu]ser[Ss]ettings/
|
||||||
|
|
||||||
# Asset meta data should only be ignored when the corresponding asset is also ignored
|
# Asset meta data should only be ignored when the corresponding asset is also ignored
|
||||||
!/[Aa]ssets/**/*.meta
|
!/[Aa]ssets/**/*.meta
|
||||||
|
|||||||
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
@@ -406,6 +406,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
szoveg: {fileID: 1041644989}
|
szoveg: {fileID: 1041644989}
|
||||||
|
osszpont: 0
|
||||||
--- !u!1 &1041644987
|
--- !u!1 &1041644987
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -441,8 +442,8 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 25.02, y: -145.89}
|
m_AnchoredPosition: {x: -0, y: -66.600006}
|
||||||
m_SizeDelta: {x: 200, y: 50}
|
m_SizeDelta: {x: 342.6646, y: 50}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1041644989
|
--- !u!114 &1041644989
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -578,7 +579,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {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_SizeDelta: {x: 160, y: 30}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1127070446
|
--- !u!114 &1127070446
|
||||||
@@ -791,7 +792,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_UiScaleMode: 0
|
m_UiScaleMode: 1
|
||||||
m_ReferencePixelsPerUnit: 100
|
m_ReferencePixelsPerUnit: 100
|
||||||
m_ScaleFactor: 1
|
m_ScaleFactor: 1
|
||||||
m_ReferenceResolution: {x: 800, y: 600}
|
m_ReferenceResolution: {x: 800, y: 600}
|
||||||
@@ -881,7 +882,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {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_SizeDelta: {x: 200, y: 50}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1956911020
|
--- !u!114 &1956911020
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -4,31 +4,31 @@ using UnityEngine;
|
|||||||
using TMPro;
|
using TMPro;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System;
|
using System;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class Akciok : MonoBehaviour
|
public class Akciok : MonoBehaviour
|
||||||
{
|
{
|
||||||
//Betarazashoz
|
//Betarazashoz
|
||||||
|
public int toltenyszamlalo = 0;
|
||||||
public TMP_Text[] toltenyek;
|
public TMP_Text[] toltenyek;
|
||||||
|
|
||||||
private int tolteny_index = 3;
|
private int tolteny_index = 3;
|
||||||
private int felhasznalt_tolteny = 0;
|
private int felhasznalt_tolteny = 0;
|
||||||
public int betarazott_tolteny = 3;
|
private int betarazott_tolteny = 3;
|
||||||
private Akciopont ap;
|
|
||||||
|
|
||||||
public int toltenyszamlalo = 0;
|
public int betarazasDb = 2;
|
||||||
|
|
||||||
|
public int getBetarazottTolteny(){ return betarazott_tolteny; }
|
||||||
|
|
||||||
|
//
|
||||||
|
private Akciopont ap;
|
||||||
//
|
//
|
||||||
|
|
||||||
//Nyomozashoz
|
//Nyomozashoz
|
||||||
private movement movement;
|
private movement movement;
|
||||||
public TMP_Text[] nyomozas_x;
|
public TMP_Text[] nyomozas_x;
|
||||||
public TMP_Text[] nyomozas_oszlop;
|
public TMP_Text[] nyomozas_oszlop;
|
||||||
private string[,] nyomozasok =
|
private bool[,] nyomozas = new bool[4,3];
|
||||||
{
|
|
||||||
{"ures", "ures", "ures", "" },
|
|
||||||
{"ures", "ures", "ures", "" },
|
|
||||||
{"ures", "ures", "ures", "" },
|
|
||||||
{"ures", "ures", "ures", "" },
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
//Hack
|
//Hack
|
||||||
public TMP_Text elso_sor_text;
|
public TMP_Text elso_sor_text;
|
||||||
@@ -45,11 +45,18 @@ public class Akciok : MonoBehaviour
|
|||||||
private bool omega = false;
|
private bool omega = false;
|
||||||
//
|
//
|
||||||
|
|
||||||
|
private DoubleClick doubleClick;
|
||||||
|
private MessageBox messageBox;
|
||||||
|
|
||||||
|
|
||||||
private void Awake(){
|
private void Awake(){
|
||||||
ap = FindObjectOfType<Akciopont>();
|
ap = FindObjectOfType<Akciopont>();
|
||||||
movement = FindObjectOfType<movement>();
|
movement = FindObjectOfType<movement>();
|
||||||
upgrade = FindObjectOfType<Upgrade>();
|
upgrade = FindObjectOfType<Upgrade>();
|
||||||
source = FindObjectOfType<Source>();
|
source = FindObjectOfType<Source>();
|
||||||
|
|
||||||
|
doubleClick = FindObjectOfType<DoubleClick>();
|
||||||
|
messageBox = FindObjectOfType<MessageBox>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start(){
|
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
|
else
|
||||||
{
|
{
|
||||||
tolteny_index += betarazas;
|
tolteny_index += betarazasDb;
|
||||||
}
|
}
|
||||||
//felhasznalt toltenytol megy hogy az ott levo x-et ne irja felul
|
//felhasznalt toltenytol megy hogy az ott levo x-et ne irja felul
|
||||||
for (int i = felhasznalt_tolteny; i < tolteny_index; i++)
|
for (int i = felhasznalt_tolteny; i < tolteny_index; i++)
|
||||||
@@ -78,10 +98,12 @@ public class Akciok : MonoBehaviour
|
|||||||
toltenyek[i].text = "O";
|
toltenyek[i].text = "O";
|
||||||
}
|
}
|
||||||
|
|
||||||
betarazott_tolteny += betarazas;
|
betarazott_tolteny += betarazasDb;
|
||||||
|
if(betarazott_tolteny > 24){
|
||||||
|
betarazott_tolteny = 24;
|
||||||
|
}
|
||||||
//tolteny_index++;
|
//tolteny_index++;
|
||||||
|
|
||||||
|
|
||||||
ap.UpdateAkciopont(-1);
|
ap.UpdateAkciopont(-1);
|
||||||
|
|
||||||
Debug.Log("Tolteny betarazva");
|
Debug.Log("Tolteny betarazva");
|
||||||
@@ -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)
|
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
|
//Nyomozas
|
||||||
public void Nyomozas()
|
public void Nyomozas() //valami elromlott az indexelessel ha eventnek at van adva || ELVILEG JAVITVA TESZTELNI TOVABB NEM ART
|
||||||
{
|
{
|
||||||
if (ap.akciopont <= 0)
|
if (ap.getAkciopont() <= 0)
|
||||||
{
|
{
|
||||||
|
messageBox.SendMessageToBox("Nincs elég akciópontod!");
|
||||||
Debug.Log("nincs eleg akciopont");
|
Debug.Log("nincs eleg akciopont");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -130,29 +158,29 @@ public class Akciok : MonoBehaviour
|
|||||||
int atirandox = movement.jelenlegi_x - 1;
|
int atirandox = movement.jelenlegi_x - 1;
|
||||||
int atirandoy = movement.jelenlegi_y - 1;
|
int atirandoy = movement.jelenlegi_y - 1;
|
||||||
|
|
||||||
if (nyomozasok[atirandoy, atirandox] == "nyomozott")
|
if (nyomozas[atirandoy, atirandox])
|
||||||
{
|
{
|
||||||
Debug.Log("Itt mar nyomoztal");
|
Debug.Log("Itt mar nyomoztal");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nyomozasok[atirandoy, atirandox] = "nyomozott";
|
nyomozas[atirandoy, atirandox] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
//egy sorral feljebb megy
|
//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";
|
nyomozas_x[counter].text = "X";
|
||||||
counter++;
|
counter++;
|
||||||
Debug.Log("counter: " + counter);
|
Debug.Log("counter: " + counter);
|
||||||
}
|
}
|
||||||
else if (nyomozasok[i, j].Equals("ures"))
|
else if (!nyomozas[i, j])
|
||||||
{
|
{
|
||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
@@ -162,18 +190,6 @@ public class Akciok : MonoBehaviour
|
|||||||
ap.UpdateAkciopont(-1);
|
ap.UpdateAkciopont(-1);
|
||||||
|
|
||||||
NyomozasOszlopCheck();
|
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()
|
private void NyomozasOszlopCheck()
|
||||||
@@ -183,10 +199,9 @@ public class Akciok : MonoBehaviour
|
|||||||
|
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
if (nyomozasok[i, oszlop].Equals("nyomozott"))
|
if (nyomozas[i, oszlop])
|
||||||
{
|
{
|
||||||
nyomozas_counter++;
|
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 count = 0;
|
||||||
int rand;
|
int rand;
|
||||||
|
|
||||||
if (ap.akciopont < upgrade.hack[upgrade.getHackIndex()])
|
if (ap.getAkciopont() < upgrade.hack[upgrade.getHackIndex()])
|
||||||
{ //van e eleg akicopont
|
{ //van e eleg akicopont
|
||||||
|
messageBox.SendMessageToBox("Nincs eleg akciopontod!");
|
||||||
Debug.Log("nincs eleg ap a hackeleshez");
|
Debug.Log("nincs eleg ap a hackeleshez");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -218,8 +239,7 @@ public class Akciok : MonoBehaviour
|
|||||||
//egy sorban lett e ketszer nyomozva
|
//egy sorban lett e ketszer nyomozva
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
//Debug.Log("Belep for");
|
if (nyomozas[movement.jelenlegi_y - 1, i])
|
||||||
if (nyomozasok[movement.jelenlegi_y - 1, i] == "nyomozott")
|
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
Debug.Log("count: " + count);
|
Debug.Log("count: " + count);
|
||||||
@@ -237,7 +257,6 @@ public class Akciok : MonoBehaviour
|
|||||||
//forras helyenek bejelolese
|
//forras helyenek bejelolese
|
||||||
if (count >= 2 && !hackelt_sorok.Contains(movement.jelenlegi_y))
|
if (count >= 2 && !hackelt_sorok.Contains(movement.jelenlegi_y))
|
||||||
{
|
{
|
||||||
Debug.Log("belep");
|
|
||||||
if (movement.jelenlegi_y == 1)
|
if (movement.jelenlegi_y == 1)
|
||||||
{
|
{
|
||||||
elso_sor_text.text = "X";
|
elso_sor_text.text = "X";
|
||||||
@@ -248,6 +267,7 @@ public class Akciok : MonoBehaviour
|
|||||||
{
|
{
|
||||||
rand = UnityEngine.Random.Range(1, 7);
|
rand = UnityEngine.Random.Range(1, 7);
|
||||||
Debug.Log("sorsolt szam: " + rand);
|
Debug.Log("sorsolt szam: " + rand);
|
||||||
|
|
||||||
if (movement.jelenlegi_y == 2)
|
if (movement.jelenlegi_y == 2)
|
||||||
{ //alpha, omega
|
{ //alpha, omega
|
||||||
if (rand < 4)
|
if (rand < 4)
|
||||||
@@ -302,12 +322,13 @@ public class Akciok : MonoBehaviour
|
|||||||
hackelt_sorok[movement.jelenlegi_y - 1] = movement.jelenlegi_y;
|
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
|
ap.UpdateAkciopont(-upgrade.hack[upgrade.getHackIndex()]); //ap koltseg levonasa
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.Log("itt mar hackeltel");
|
Debug.Log("itt mar hackeltel");
|
||||||
|
messageBox.SendMessageToBox("Itt már hackeltél!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,26 +6,25 @@ using TMPro;
|
|||||||
public class Akciopont : MonoBehaviour
|
public class Akciopont : MonoBehaviour
|
||||||
{
|
{
|
||||||
public TMP_Text text;
|
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
|
private void Start(){
|
||||||
void Start()
|
setText();
|
||||||
{
|
|
||||||
text.text = "Akciopontok: ";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
private void setText(){
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
text.text = "Akciopontok: " + akciopont;
|
text.text = "Akciopontok: " + akciopont;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateAkciopont(int number) {
|
public void UpdateAkciopont(int number) {
|
||||||
akciopont += number;
|
akciopont += number;
|
||||||
|
setText();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resetAkciopont() {
|
public void resetAkciopont() {
|
||||||
akciopont = 0;
|
akciopont = 0;
|
||||||
|
setText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,41 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO; //ideiglenes amig a mac camera bug nincs javitva aztan torolheto
|
||||||
|
using System.Text; //ideiglenes
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class AspectRatioHandler : MonoBehaviour
|
public class AspectRatioHandler : MonoBehaviour
|
||||||
{
|
{
|
||||||
public Camera mainCamera;
|
public Camera mainCamera;
|
||||||
|
private StreamWriter writer;
|
||||||
|
|
||||||
private void Awake() {
|
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;
|
double aspectRatio = (double)Screen.width / (double)Screen.height;
|
||||||
aspectRatio = Math.Round(aspectRatio, 2);
|
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);
|
Debug.Log("aspectratio: " + aspectRatio);
|
||||||
|
|
||||||
//5:4 1,25, 4:3 1,33, 16:9 1,77, 16:10 1,6, 21:9 2,33
|
//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){
|
if(aspectRatio == 1.78 || aspectRatio == 2.33){
|
||||||
|
if(Application.platform == RuntimePlatform.OSXPlayer)
|
||||||
|
mainCamera.orthographicSize = 11.5f; //mac aspect ratio fix???
|
||||||
|
else
|
||||||
mainCamera.orthographicSize = 10.4f; //16:9, 21:9
|
mainCamera.orthographicSize = 10.4f; //16:9, 21:9
|
||||||
}else if(aspectRatio == 1.6){
|
}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){
|
}else if(aspectRatio == 1.33){
|
||||||
mainCamera.orthographicSize = 13.72f; //4:3
|
mainCamera.orthographicSize = 13.72f; //4:3
|
||||||
}else if(aspectRatio == 1.25){
|
}else if(aspectRatio == 1.25){
|
||||||
mainCamera.orthographicSize = 14.68f;
|
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:
|
||||||
@@ -15,6 +15,11 @@ public class ControllerHandler : MonoBehaviour
|
|||||||
Debug.Log("Controller connected");
|
Debug.Log("Controller connected");
|
||||||
for(int i = 0; i < controllers.Length; i++){
|
for(int i = 0; i < controllers.Length; i++){
|
||||||
Debug.Log(controllers[i]);
|
Debug.Log(controllers[i]);
|
||||||
|
|
||||||
|
//lock and disable mouse
|
||||||
|
//Cursor.lockState = CursorLockMode.locked;
|
||||||
|
//Cursor.visible = false;
|
||||||
|
|
||||||
//yield break;
|
//yield break;
|
||||||
}
|
}
|
||||||
}else if(connected && controllers.Length == 0){
|
}else if(connected && controllers.Length == 0){
|
||||||
@@ -23,7 +28,7 @@ public class ControllerHandler : MonoBehaviour
|
|||||||
Debug.Log("not connected");
|
Debug.Log("not connected");
|
||||||
}
|
}
|
||||||
|
|
||||||
yield return new WaitForSeconds(5f); //check every 5 seconds
|
yield return new WaitForSecondsRealtime(5f); //check every 5 seconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,16 +7,23 @@ public class Dice : MonoBehaviour {
|
|||||||
public Sprite[] diceSides = new Sprite[6];
|
public Sprite[] diceSides = new Sprite[6];
|
||||||
public SpriteRenderer hely1;
|
public SpriteRenderer hely1;
|
||||||
public SpriteRenderer hely2;
|
public SpriteRenderer hely2;
|
||||||
|
[SerializeField] private int spriteSize = 60;
|
||||||
|
private Vector2 diceSpriteSize;
|
||||||
|
|
||||||
public Button dice1btnBtn;
|
public Button dice1btnBtn;
|
||||||
public Button dice2btnBtn;
|
public Button dice2btnBtn;
|
||||||
|
|
||||||
private Upgrade upgrade;
|
private Upgrade upgrade;
|
||||||
private Akciopont ap;
|
private Akciopont ap;
|
||||||
private Energia energiasav;
|
private Energia energiasav;
|
||||||
private Targyak targyak;
|
private Targyak targyak;
|
||||||
|
private Ugynok ugynok;
|
||||||
|
private movement movement;
|
||||||
|
|
||||||
public int[] diceResult = { 0, 0 };
|
public int[] diceResult = { 0, 0 };
|
||||||
public List<int> ujertek = new List<int>();
|
public List<int> ujertek = new List<int>();
|
||||||
public int valasztottErtek; //a jatekos altal valasztott dobott ertek helye
|
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 bool adrenalinMegerosites = false;
|
||||||
public GameObject adrenalinHasznalat;
|
public GameObject adrenalinHasznalat;
|
||||||
public Button confirm;
|
public Button confirm;
|
||||||
@@ -34,11 +41,17 @@ public class Dice : MonoBehaviour {
|
|||||||
public bool dobottEgyszer = false; //tudjon ujra dobni vagy nem
|
public bool dobottEgyszer = false; //tudjon ujra dobni vagy nem
|
||||||
public int ujradobasszamlalo;
|
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() {
|
private void Awake() {
|
||||||
upgrade = FindObjectOfType<Upgrade>();
|
upgrade = FindObjectOfType<Upgrade>();
|
||||||
ap = FindObjectOfType<Akciopont>();
|
ap = FindObjectOfType<Akciopont>();
|
||||||
energiasav = FindObjectOfType<Energia>();
|
energiasav = FindObjectOfType<Energia>();
|
||||||
targyak = FindObjectOfType<Targyak>();
|
targyak = FindObjectOfType<Targyak>();
|
||||||
|
ugynok = FindObjectOfType<Ugynok>();
|
||||||
|
movement = FindObjectOfType<movement>();
|
||||||
|
|
||||||
|
diceSpriteSize = new Vector2(spriteSize, spriteSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ertekValasztas(GameObject gomb) {
|
public void ertekValasztas(GameObject gomb) {
|
||||||
@@ -46,28 +59,79 @@ public class Dice : MonoBehaviour {
|
|||||||
if (gomb.name == "dice1btn") {
|
if (gomb.name == "dice1btn") {
|
||||||
valasztottErtek = diceResult[0];
|
valasztottErtek = diceResult[0];
|
||||||
if (diceResult[0] < diceResult[1]) {
|
if (diceResult[0] < diceResult[1]) {
|
||||||
|
if(!ugynokDobasErtek){
|
||||||
upgrade.canUpgrade = true; //kisebb szam valasztasa eseten fejlesztes egyszer
|
upgrade.canUpgrade = true; //kisebb szam valasztasa eseten fejlesztes egyszer
|
||||||
|
//locked = true;
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||||
}else{
|
}else{
|
||||||
energiasav.csokkenEnergia(1); //nagyobb szam valasztasa eseten -1 energia
|
//ugynok csapat szama
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
ugynok.UgynokSorsolas(movement.jelenlegi_x, movement.jelenlegi_y, valasztottErtek);
|
||||||
}
|
|
||||||
|
|
||||||
locked = true;
|
//-1 energia
|
||||||
} else if (gomb.name == "dice2btn") {
|
|
||||||
valasztottErtek = diceResult[1];
|
|
||||||
if (diceResult[1] < diceResult[0]) {
|
|
||||||
upgrade.canUpgrade = true;
|
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
|
||||||
} else {
|
|
||||||
energiasav.csokkenEnergia(1);
|
energiasav.csokkenEnergia(1);
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Akcio);
|
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;
|
||||||
|
|
||||||
|
} else if (gomb.name == "dice2btn") {
|
||||||
|
valasztottErtek = diceResult[1];
|
||||||
|
if (diceResult[1] < diceResult[0]) {
|
||||||
|
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
|
||||||
|
//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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//if(!ugynokDobasErtek)
|
||||||
locked = true;
|
locked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!ugynokDobasErtek)
|
||||||
ap.UpdateAkciopont(getValasztottErtek() + upgrade.akcio[upgrade.getAkcioIndex()]);
|
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);
|
Debug.Log("valasztott ertek: " + valasztottErtek + " locked status: " + locked);
|
||||||
@@ -82,11 +146,12 @@ public class Dice : MonoBehaviour {
|
|||||||
return finalSide;
|
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)
|
//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
|
//dice gombok kikapcsolasa hogy amig nem vegez ne tudjon erteket valasztani
|
||||||
dice1btnBtn.enabled = false;
|
dice1btnBtn.enabled = false;
|
||||||
@@ -97,18 +162,20 @@ public class Dice : MonoBehaviour {
|
|||||||
diceResult[1] = RollDice();
|
diceResult[1] = RollDice();
|
||||||
} while (diceResult[0] == diceResult[1]);
|
} while (diceResult[0] == diceResult[1]);
|
||||||
|
|
||||||
|
//dice porgo animacio
|
||||||
|
callAnimateDice(hely1, diceResult[0]);
|
||||||
|
callAnimateDice(hely2, diceResult[1]);
|
||||||
|
|
||||||
//lassa a jatekos mit dobott
|
//lassa a jatekos mit dobott
|
||||||
hely1.sprite = diceSides[diceResult[0]-1];
|
hely1.sprite = diceSides[diceResult[0]-1];
|
||||||
hely1.size = new Vector2(38, 38);
|
hely1.size = diceSpriteSize;
|
||||||
|
|
||||||
hely2.sprite = diceSides[diceResult[1]-1];
|
hely2.sprite = diceSides[diceResult[1]-1];
|
||||||
hely2.size = new Vector2(38, 38);
|
hely2.size = diceSpriteSize;
|
||||||
|
|
||||||
ujradobasszamlalo--;
|
if(ugynokDobas){
|
||||||
Debug.Log("ujradobasszamlalo: " + ujradobasszamlalo);
|
ugynokDobasErtek = true;
|
||||||
if(ujradobasszamlalo == 0){
|
setLocked(false);
|
||||||
dobottEgyszer = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//ha megvan a targy
|
//ha megvan a targy
|
||||||
@@ -181,6 +248,9 @@ public class Dice : MonoBehaviour {
|
|||||||
diceResult[0] = targyak.ujertek1;
|
diceResult[0] = targyak.ujertek1;
|
||||||
diceResult[1] = targyak.ujertek2;
|
diceResult[1] = targyak.ujertek2;
|
||||||
dobottEgyszer = true;
|
dobottEgyszer = true;
|
||||||
|
|
||||||
|
if(!ugynokDobas) //ha ugynok miatt van dobas ne vonjon le
|
||||||
|
ujradobasszamlalo++; //elhasznal egyet fent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//deaktivalas
|
//deaktivalas
|
||||||
@@ -188,15 +258,25 @@ public class Dice : MonoBehaviour {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hely1.sprite = diceSides[diceResult[0]-1];
|
hely1.sprite = diceSides[diceResult[0]-1];
|
||||||
hely1.size = new Vector2(38, 38);
|
hely1.size = diceSpriteSize;
|
||||||
|
|
||||||
hely2.sprite = diceSides[diceResult[1]-1];
|
hely2.sprite = diceSides[diceResult[1]-1];
|
||||||
hely2.size = new Vector2(38, 38);
|
hely2.size = diceSpriteSize;
|
||||||
dobott++;
|
dobott++;
|
||||||
|
|
||||||
//ha vegzett mindennel kapcsolja vissza az ertekvalasztast
|
//ha vegzett mindennel kapcsolja vissza az ertekvalasztast
|
||||||
dice1btnBtn.enabled = true;
|
dice1btnBtn.enabled = true;
|
||||||
dice2btnBtn.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){
|
public void HelyszinKiBekapcs(bool kikapcsolas){
|
||||||
@@ -211,4 +291,30 @@ public class Dice : MonoBehaviour {
|
|||||||
public void setAdrenalinMegerosites(bool adrenalinMegerosites) {
|
public void setAdrenalinMegerosites(bool adrenalinMegerosites) {
|
||||||
this.adrenalinMegerosites = 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 TMP_Text[] elet_text;
|
||||||
public int elet = 2;
|
public int elet = 2;
|
||||||
private int elet_vesztve = 0;
|
[SerializeField] private int elet_vesztve = 0;
|
||||||
private int elet_megszerezve = 2;
|
private int elet_megszerezve = 2;
|
||||||
private jatekmanager jatekmanager;
|
private jatekmanager jatekmanager;
|
||||||
|
|
||||||
|
|
||||||
|
[SerializeField] private bool orokelet;
|
||||||
|
|
||||||
private void Awake() {
|
private void Awake() {
|
||||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||||
|
|
||||||
|
#if !UNITY_EDITOR //buildelve mindig false legyen az orokelet
|
||||||
|
orokelet = false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start() {
|
private void Start() {
|
||||||
@@ -22,7 +29,7 @@ public class Elet : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void Update() {
|
private void Update() {
|
||||||
if(elet == 0){
|
if(elet+1 == 0 && !orokelet){
|
||||||
jatekmanager.Instance.jatekosvesztett = true;
|
jatekmanager.Instance.jatekosvesztett = true;
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Vesztette);
|
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Vesztette);
|
||||||
}
|
}
|
||||||
@@ -44,12 +51,13 @@ public class Elet : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void Eletvesztes() {
|
public void Eletvesztes() {
|
||||||
if (elet_vesztve > 4)
|
if(orokelet) return;
|
||||||
|
if (elet_vesztve > 5)
|
||||||
{
|
{
|
||||||
//jatekmanager.jatekosvesztett = true;
|
//jatekmanager.jatekosvesztett = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (elet_megszerezve > elet +1) return;
|
//if (elet_megszerezve > elet +1) return;
|
||||||
//if(elet < 0) return;
|
//if(elet < 0) return;
|
||||||
|
|
||||||
elet_vesztve++;
|
elet_vesztve++;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class Energia : MonoBehaviour
|
|||||||
return; //targy cucc aktivalva egesz korbe nem csokken az energia
|
return; //targy cucc aktivalva egesz korbe nem csokken az energia
|
||||||
}
|
}
|
||||||
|
|
||||||
if (energiasav_index > 29) {
|
if (getEnergiasavIndex() > 29) {
|
||||||
jatekmanager.Instance.jatekosvesztett = true;
|
jatekmanager.Instance.jatekosvesztett = true;
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Vesztette);
|
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Vesztette);
|
||||||
//ha nincs tobb energia vesztes
|
//ha nincs tobb energia vesztes
|
||||||
@@ -28,8 +28,8 @@ public class Energia : MonoBehaviour
|
|||||||
|
|
||||||
for (int i = 0; i < number; i++) {
|
for (int i = 0; i < number; i++) {
|
||||||
//if (number + enegiasav_index > energiasav_text.Length) break;
|
//if (number + enegiasav_index > energiasav_text.Length) break;
|
||||||
if (energiasav_index >= 30) {
|
if (getEnergiasavIndex() >= 30) {
|
||||||
energiasav_index = 29;
|
setEnegiasavIndex(29);
|
||||||
break;
|
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:
|
||||||
@@ -19,6 +19,7 @@ public class Source : MonoBehaviour
|
|||||||
private void Awake() {
|
private void Awake() {
|
||||||
movement = FindObjectOfType<movement>();
|
movement = FindObjectOfType<movement>();
|
||||||
ugynok = FindObjectOfType<Ugynok>();
|
ugynok = FindObjectOfType<Ugynok>();
|
||||||
|
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start() {
|
private void Start() {
|
||||||
|
|||||||
@@ -15,8 +15,11 @@ public class Targyak : MonoBehaviour
|
|||||||
private Ugynok ugynok;
|
private Ugynok ugynok;
|
||||||
private Dice dice;
|
private Dice dice;
|
||||||
private jatekmanager jatekmanager;
|
private jatekmanager jatekmanager;
|
||||||
|
private MessageBox messageBox;
|
||||||
|
|
||||||
public TMP_InputField kocka1ertek;
|
public TMP_InputField kocka1ertek;
|
||||||
public TMP_InputField kocka2ertek;
|
public TMP_InputField kocka2ertek;
|
||||||
|
|
||||||
public int ujertek1;
|
public int ujertek1;
|
||||||
public int ujertek2;
|
public int ujertek2;
|
||||||
public int targy_szamlalo = 0;
|
public int targy_szamlalo = 0;
|
||||||
@@ -26,6 +29,9 @@ public class Targyak : MonoBehaviour
|
|||||||
public int droidgepagyu = 0;
|
public int droidgepagyu = 0;
|
||||||
public int matavtaviranyito = 0;
|
public int matavtaviranyito = 0;
|
||||||
public int fustgranat = 0;
|
public int fustgranat = 0;
|
||||||
|
|
||||||
|
[SerializeField] private bool vanUgynok = false;
|
||||||
|
|
||||||
public bool lathatatlanOltozetAktivalva = false;
|
public bool lathatatlanOltozetAktivalva = false;
|
||||||
public bool matavtaviranyitoAktivalva = false;
|
public bool matavtaviranyitoAktivalva = false;
|
||||||
private int randomszam;
|
private int randomszam;
|
||||||
@@ -33,14 +39,16 @@ public class Targyak : MonoBehaviour
|
|||||||
public Button cancelNewValue;
|
public Button cancelNewValue;
|
||||||
|
|
||||||
//targy megszerezve ui
|
//targy megszerezve ui
|
||||||
public TMP_Text adrenalinMegszerezve;
|
//TODO: change to searialize field
|
||||||
public TMP_Text hackerMegszerezve;
|
[SerializeField] private TMP_Text adrenalinMegszerezve;
|
||||||
public TMP_Text lathatatlanMegszerezve;
|
[SerializeField] private TMP_Text hackerMegszerezve;
|
||||||
public TMP_Text droidMegszerezve;
|
[SerializeField] private TMP_Text lathatatlanMegszerezve;
|
||||||
public TMP_Text matavMegszerezve;
|
[SerializeField] private TMP_Text droidMegszerezve;
|
||||||
public TMP_Text alomhozoMegszerezve;
|
[SerializeField] private TMP_Text matavMegszerezve;
|
||||||
|
[SerializeField] private TMP_Text alomhozoMegszerezve;
|
||||||
|
|
||||||
//targy felhasznalva ui
|
//targy felhasznalva ui
|
||||||
|
//TODO: change to searialize field
|
||||||
public TMP_Text adrenalinFelhasznalva;
|
public TMP_Text adrenalinFelhasznalva;
|
||||||
public TMP_Text hackerFelhasznalva;
|
public TMP_Text hackerFelhasznalva;
|
||||||
public TMP_Text lathatatlanFelhasznalva;
|
public TMP_Text lathatatlanFelhasznalva;
|
||||||
@@ -48,7 +56,7 @@ public class Targyak : MonoBehaviour
|
|||||||
public TMP_Text matavFelhasznalva;
|
public TMP_Text matavFelhasznalva;
|
||||||
public TMP_Text alomhozoFelhasznalva;
|
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() {
|
private void Awake() {
|
||||||
akciok = FindObjectOfType<Akciok>();
|
akciok = FindObjectOfType<Akciok>();
|
||||||
@@ -59,6 +67,16 @@ public class Targyak : MonoBehaviour
|
|||||||
ugynok = FindObjectOfType<Ugynok>();
|
ugynok = FindObjectOfType<Ugynok>();
|
||||||
dice = FindObjectOfType<Dice>();
|
dice = FindObjectOfType<Dice>();
|
||||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
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()
|
public void RandomTargy()
|
||||||
@@ -71,27 +89,39 @@ public class Targyak : MonoBehaviour
|
|||||||
if(elerheto_targyak[randomszam].Equals("Adrenalinloket")){
|
if(elerheto_targyak[randomszam].Equals("Adrenalinloket")){
|
||||||
adrenalinMegszerezve.text = "X";
|
adrenalinMegszerezve.text = "X";
|
||||||
adrenalinloket++;
|
adrenalinloket++;
|
||||||
|
adrenalinFelhasznalva.gameObject.SetActive(true);
|
||||||
Debug.Log("Kaptal egy AdrenalinLoketet!");
|
Debug.Log("Kaptal egy AdrenalinLoketet!");
|
||||||
|
messageBox.SendMessageToBox("Kaptal egy AdrenalinLoketet!");
|
||||||
}else if(elerheto_targyak[randomszam].Equals("Hacker csatlakozo")){
|
}else if(elerheto_targyak[randomszam].Equals("Hacker csatlakozo")){
|
||||||
hackerMegszerezve.text = "X";
|
hackerMegszerezve.text = "X";
|
||||||
hackercsatlakozo++;
|
hackercsatlakozo++;
|
||||||
|
hackerFelhasznalva.gameObject.SetActive(true);
|
||||||
Debug.Log("Kaptal egy Hacker Csatlakozot!");
|
Debug.Log("Kaptal egy Hacker Csatlakozot!");
|
||||||
|
messageBox.SendMessageToBox("Kaptal egy Hacker Csatlakozot!");
|
||||||
}else if(elerheto_targyak[randomszam].Equals("Lathatatlan oltozet")){
|
}else if(elerheto_targyak[randomszam].Equals("Lathatatlan oltozet")){
|
||||||
lathatatlanMegszerezve.text = "X";
|
lathatatlanMegszerezve.text = "X";
|
||||||
lathatatlanoltozet++;
|
lathatatlanoltozet++;
|
||||||
|
lathatatlanFelhasznalva.gameObject.SetActive(true);
|
||||||
Debug.Log("Kaptal egy Lathatatlan oltozetet!");
|
Debug.Log("Kaptal egy Lathatatlan oltozetet!");
|
||||||
|
messageBox.SendMessageToBox("Kaptal egy Lathatatlan oltozetet!");
|
||||||
}else if(elerheto_targyak[randomszam].Equals("Droid agyu")){
|
}else if(elerheto_targyak[randomszam].Equals("Droid agyu")){
|
||||||
droidMegszerezve.text = "X";
|
droidMegszerezve.text = "X";
|
||||||
droidgepagyu++;
|
droidgepagyu++;
|
||||||
|
droidFelhasznalva.gameObject.SetActive(true);
|
||||||
Debug.Log("Kaptal egy Droid-X2 Gepagyut!");
|
Debug.Log("Kaptal egy Droid-X2 Gepagyut!");
|
||||||
|
messageBox.SendMessageToBox("Kaptal egy Droid-X2 Gepagyut!");
|
||||||
}else if(elerheto_targyak[randomszam].Equals("Matav taviranyito")){
|
}else if(elerheto_targyak[randomszam].Equals("Matav taviranyito")){
|
||||||
matavMegszerezve.text = "X";
|
matavMegszerezve.text = "X";
|
||||||
matavtaviranyito++;
|
matavtaviranyito++;
|
||||||
|
matavFelhasznalva.gameObject.SetActive(true);
|
||||||
Debug.Log("Kaptal egy Matav Taviranyitot!");
|
Debug.Log("Kaptal egy Matav Taviranyitot!");
|
||||||
|
messageBox.SendMessageToBox("Kaptal egy Matav Taviranyitot!");
|
||||||
}else if(elerheto_targyak[randomszam].Equals("Alomhozo fustgranat")){
|
}else if(elerheto_targyak[randomszam].Equals("Alomhozo fustgranat")){
|
||||||
alomhozoMegszerezve.text = "X";
|
alomhozoMegszerezve.text = "X";
|
||||||
fustgranat++;
|
fustgranat++;
|
||||||
|
alomhozoFelhasznalva.gameObject.SetActive(true);
|
||||||
Debug.Log("Kaptal egy Alomhozo Fustgranatot!");
|
Debug.Log("Kaptal egy Alomhozo Fustgranatot!");
|
||||||
|
messageBox.SendMessageToBox("Kaptal egy Alomhozo Fustgranatot!");
|
||||||
}
|
}
|
||||||
|
|
||||||
elerheto_targyak.RemoveAt(randomszam); //szedje ki a listabol
|
elerheto_targyak.RemoveAt(randomszam); //szedje ki a listabol
|
||||||
@@ -175,9 +205,15 @@ public class Targyak : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void HackerCsatlakozo() { //kesz
|
public void HackerCsatlakozo() { //kesz
|
||||||
|
if(hackercsatlakozo <= 0){
|
||||||
|
Debug.Log("Nincs ilyen targyad!!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//+2 tolteny
|
//+2 tolteny
|
||||||
akciok.Betarazas(2);
|
akciok.betarazasDb = 2;
|
||||||
akciopont.akciopont++; //betarazas miatt egy pont visszaadasa
|
akciok.Betarazas();
|
||||||
|
akciopont.UpdateAkciopont(1); //betarazas miatt egy pont visszaadasa
|
||||||
//+1 elet
|
//+1 elet
|
||||||
elet.Eletplusz();
|
elet.Eletplusz();
|
||||||
//+1 akcio
|
//+1 akcio
|
||||||
@@ -192,6 +228,11 @@ public class Targyak : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void LathatatlanOltozek() { //kesz
|
public void LathatatlanOltozek() { //kesz
|
||||||
|
if(lathatatlanoltozet <= 0){
|
||||||
|
Debug.Log("Nincs ilyen targyad!!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lathatatlanOltozetAktivalva = true;
|
lathatatlanOltozetAktivalva = true;
|
||||||
lathatatlanoltozet = 0; //targy elvesztese
|
lathatatlanoltozet = 0; //targy elvesztese
|
||||||
|
|
||||||
@@ -202,11 +243,60 @@ public class Targyak : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void DroidGepagyu() {
|
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
|
//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
|
//deaktivalas
|
||||||
//jatekmanager.ugynokDeaktivalas(false);
|
//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);
|
jatekmanager.UpdateGameState(jatekmanager.GameState.Ugynok); //ugynok state (minden kikapcsolva);
|
||||||
|
|
||||||
ugynok.droidagyuAktivalva = true;
|
ugynok.droidagyuAktivalva = true;
|
||||||
@@ -222,6 +312,11 @@ public class Targyak : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void MatavTaviranyito() {
|
public void MatavTaviranyito() {
|
||||||
|
if(matavtaviranyito <= 0){
|
||||||
|
Debug.Log("Nincs ilyen targyad!!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
matavtaviranyitoAktivalva = true;
|
matavtaviranyitoAktivalva = true;
|
||||||
matavtaviranyito = 0; //targy elvesztese
|
matavtaviranyito = 0; //targy elvesztese
|
||||||
|
|
||||||
@@ -232,6 +327,11 @@ public class Targyak : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void FustGranat() {
|
public void FustGranat() {
|
||||||
|
if(fustgranat <= 0){
|
||||||
|
Debug.Log("Nincs ilyen targyad!!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
energia.granatAktivalva = true;
|
energia.granatAktivalva = true;
|
||||||
fustgranat = 0; //targy elvesztese
|
fustgranat = 0; //targy elvesztese
|
||||||
|
|
||||||
|
|||||||
@@ -27,33 +27,28 @@ public class TurnManager : MonoBehaviour
|
|||||||
public void nextTurn() {
|
public void nextTurn() {
|
||||||
dice.setLocked(false);
|
dice.setLocked(false);
|
||||||
dice.dobottEgyszer = 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.hely1.sprite = null;
|
||||||
dice.hely2.sprite = null;
|
dice.hely2.sprite = null;
|
||||||
dice.ujradobasszamlalo = upgrade.ujradobas[upgrade.getUjradobasIndex()] + 1;
|
dice.ujradobasszamlalo = upgrade.ujradobas[upgrade.getUjradobasIndex()] + 1;
|
||||||
|
dice.diceResult = new int[2];
|
||||||
Debug.Log("ujradobasszamlalo: " + dice.ujradobasszamlalo);
|
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.vanertelme = true;
|
||||||
jatekmanager.JatekosVesztett();
|
jatekmanager.JatekosVesztett();
|
||||||
jatekmanager.JatekosNyert();
|
jatekmanager.JatekosNyert();
|
||||||
|
|
||||||
if (jatekmanager.jatekosnyert == false && jatekmanager.jatekosvesztett == false)
|
if (jatekmanager.jatekosnyert == false && jatekmanager.jatekosvesztett == false)
|
||||||
{
|
{
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.KorKezdet); //a jatekmanager atvalt a korkezdet eventre
|
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.KorKezdet); //a jatekmanager atvalt a korkezdet eventre
|
||||||
|
|
||||||
Debug.Log("kovetkezo kor " + turnCounter);
|
Debug.Log("kovetkezo kor " + turnCounter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
if (energiavesztese > 29)
|
|
||||||
{
|
|
||||||
jatekmanager.Instance.UpdateGameState(GameState.Vesztett); //a jatekmanager atvalt a vesztett eventre
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,46 +7,32 @@ using TMPro;
|
|||||||
public class Ugynok : MonoBehaviour
|
public class Ugynok : MonoBehaviour
|
||||||
{
|
{
|
||||||
private Akciok akciok;
|
private Akciok akciok;
|
||||||
|
private Akciopont ap;
|
||||||
private Upgrade upgrade;
|
private Upgrade upgrade;
|
||||||
private jatekmanager jatekmanager;
|
private jatekmanager jatekmanager;
|
||||||
private Elet elet;
|
private Elet elet;
|
||||||
private movement movement;
|
private movement movement;
|
||||||
|
|
||||||
public TMP_Text[] oneone;
|
public TMP_Text[] oneone;
|
||||||
//public BoxCollider2D[] oneoneCollider;
|
|
||||||
public TMP_Text[] twoone;
|
public TMP_Text[] twoone;
|
||||||
//public BoxCollider2D[] twooneCollider;
|
|
||||||
public TMP_Text[] threeone;
|
public TMP_Text[] threeone;
|
||||||
//public BoxCollider2D[] threeoneCollider;
|
|
||||||
public TMP_Text[] onetwo;
|
public TMP_Text[] onetwo;
|
||||||
//public BoxCollider2D[] onetwoCollider;
|
|
||||||
public TMP_Text[] twotwo;
|
public TMP_Text[] twotwo;
|
||||||
//public BoxCollider2D[] twotwoCollider;
|
|
||||||
public TMP_Text[] threetwo;
|
public TMP_Text[] threetwo;
|
||||||
//public BoxCollider2D[] threetwoCollider;
|
|
||||||
public TMP_Text[] onethree;
|
public TMP_Text[] onethree;
|
||||||
//public BoxCollider2D[] onethreeCollider;
|
|
||||||
public TMP_Text[] twothree;
|
public TMP_Text[] twothree;
|
||||||
//public BoxCollider2D[] twothreeCollider;
|
|
||||||
public TMP_Text[] threethree;
|
public TMP_Text[] threethree;
|
||||||
//public BoxCollider2D[] threethreeCollider;
|
|
||||||
public TMP_Text[] onefour;
|
public TMP_Text[] onefour;
|
||||||
//public BoxCollider2D[] onefourCollider;
|
|
||||||
public TMP_Text[] twofour;
|
public TMP_Text[] twofour;
|
||||||
//public BoxCollider2D[] twofourCollider;
|
|
||||||
public TMP_Text[] threefour;
|
public TMP_Text[] threefour;
|
||||||
//public BoxCollider2D[] threefourCollider;
|
|
||||||
|
|
||||||
public bool droidagyuAktivalva = false;
|
public bool droidagyuAktivalva = false;
|
||||||
|
|
||||||
public bool canKill = false;
|
public bool canKill = false;
|
||||||
public bool canShoot = false; //harchoz bool
|
public bool canShoot = false; //harchoz bool
|
||||||
public void setCanKillTrue(){ canKill = true; }
|
[SerializeField] private string[] previus_ugynok_csapatok;
|
||||||
public Camera maincamera;
|
|
||||||
|
|
||||||
private string[] previus_ugynok_csapatok;
|
|
||||||
private int elozo_x;
|
private int elozo_x;
|
||||||
private int elozo_y ;
|
private int elozo_y ;
|
||||||
|
public void setCanKillTrue(){ canKill = true; }
|
||||||
|
|
||||||
private void Awake() {
|
private void Awake() {
|
||||||
akciok = FindObjectOfType<Akciok>();
|
akciok = FindObjectOfType<Akciok>();
|
||||||
@@ -54,12 +40,11 @@ public class Ugynok : MonoBehaviour
|
|||||||
jatekmanager = FindObjectOfType<jatekmanager>();
|
jatekmanager = FindObjectOfType<jatekmanager>();
|
||||||
movement = FindObjectOfType<movement>();
|
movement = FindObjectOfType<movement>();
|
||||||
elet = FindObjectOfType<Elet>();
|
elet = FindObjectOfType<Elet>();
|
||||||
|
ap = FindObjectOfType<Akciopont>();
|
||||||
|
|
||||||
previus_ugynok_csapatok = new string[3];
|
previus_ugynok_csapatok = new string[3];
|
||||||
}
|
|
||||||
|
|
||||||
private void Start()
|
//ugynok csapat mezo szoveg kiurites
|
||||||
{
|
|
||||||
for (int i = 0; i < oneone.Length; i++)
|
for (int i = 0; i < oneone.Length; i++)
|
||||||
{
|
{
|
||||||
oneone[i].text = "";
|
oneone[i].text = "";
|
||||||
@@ -110,194 +95,205 @@ public class Ugynok : MonoBehaviour
|
|||||||
{
|
{
|
||||||
threefour[i].text = "";
|
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 (x == 1 && y == 1)
|
||||||
{
|
{
|
||||||
if (oneone[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 1 && y == 2)
|
||||||
{
|
{
|
||||||
if (onetwo[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 1 && y == 3)
|
||||||
{
|
{
|
||||||
if (onethree[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 1 && y == 4)
|
||||||
{
|
{
|
||||||
if (onefour[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 2 && y == 1)
|
||||||
{
|
{
|
||||||
if (twoone[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 2 && y == 2)
|
||||||
{
|
{
|
||||||
if (twotwo[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 2 && y == 3)
|
||||||
{
|
{
|
||||||
if (twothree[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 2 && y == 4)
|
||||||
{
|
{
|
||||||
if (twofour[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 3 && y == 1)
|
||||||
{
|
{
|
||||||
if (threeone[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 3 && y == 2)
|
||||||
{
|
{
|
||||||
if (threetwo[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 3 && y == 3)
|
||||||
{
|
{
|
||||||
if (threethree[0].text.Equals(""))
|
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(""))
|
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(""))
|
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)
|
else if (x == 3 && y == 4)
|
||||||
{
|
{
|
||||||
if (threefour[0].text.Equals(""))
|
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(""))
|
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(""))
|
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 tmp = ugynokText.gameObject.name;
|
||||||
string s = ugynokText.gameObject.name;
|
string s = ugynokText.gameObject.name;
|
||||||
//Debug.Log("gomb name: " + s);
|
//Debug.Log("gomb name: " + s);
|
||||||
@@ -329,11 +325,20 @@ public class Ugynok : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ugynokcsapatletszama = int.Parse(ugynokText.text);
|
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");
|
Debug.Log("nincs eleg tolteny");
|
||||||
return;
|
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()]);
|
akciok.Loves(ugynokcsapatletszama / upgrade.harc[upgrade.getHarcIndex()]);
|
||||||
|
canKill = false;
|
||||||
Debug.Log("tolteny szama:" + ugynokcsapatletszama / upgrade.harc[upgrade.getHarcIndex()]);
|
Debug.Log("tolteny szama:" + ugynokcsapatletszama / upgrade.harc[upgrade.getHarcIndex()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -343,6 +348,7 @@ public class Ugynok : MonoBehaviour
|
|||||||
|
|
||||||
//minden vissza kapcsolasa
|
//minden vissza kapcsolasa
|
||||||
//jatekmanager.ugynokDeaktivalas(true);
|
//jatekmanager.ugynokDeaktivalas(true);
|
||||||
|
|
||||||
jatekmanager.UpdateGameState(jatekmanager.GameState.Akcio); //miutan vegzett menjen az akcio state-re
|
jatekmanager.UpdateGameState(jatekmanager.GameState.Akcio); //miutan vegzett menjen az akcio state-re
|
||||||
droidagyuAktivalva = false;
|
droidagyuAktivalva = false;
|
||||||
}
|
}
|
||||||
@@ -352,8 +358,12 @@ public class Ugynok : MonoBehaviour
|
|||||||
if(elozo_x != movement.jelenlegi_x || elozo_y != movement.jelenlegi_y){
|
if(elozo_x != movement.jelenlegi_x || elozo_y != movement.jelenlegi_y){
|
||||||
foreach(var item in previus_ugynok_csapatok){
|
foreach(var item in previus_ugynok_csapatok){
|
||||||
if(!item.Equals("")){
|
if(!item.Equals("")){
|
||||||
|
Debug.Log("|"+item+"|");
|
||||||
//ha nem ures a text vagyis volt atirva szamra nezze meg hogy X-e
|
//ha nem ures a text vagyis volt atirva szamra nezze meg hogy X-e
|
||||||
if(!item.Equals("x")){
|
//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
|
//vonjon le egy eletet
|
||||||
elet.Eletvesztes();
|
elet.Eletvesztes();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Threading;
|
|||||||
|
|
||||||
public class fps : MonoBehaviour
|
public class fps : MonoBehaviour
|
||||||
{
|
{
|
||||||
public TMP_Text fpsText;
|
public TMP_Text fpsText; //ideiglenesen megvaltoztatva az uzenet boxra!!
|
||||||
[SerializeField] private float _hudRefreshRate = 1f;
|
[SerializeField] private float _hudRefreshRate = 1f;
|
||||||
private float _timer;
|
private float _timer;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
public List<TMP_Text> twotwoText;
|
public List<TMP_Text> twotwoText;
|
||||||
public TMP_Text twothreeText;
|
public TMP_Text twothreeText;
|
||||||
public TMP_Text twofourText;
|
public TMP_Text twofourText;
|
||||||
|
|
||||||
public TMP_Text threeoneText;
|
public TMP_Text threeoneText;
|
||||||
public List<TMP_Text> threetwoText;
|
public List<TMP_Text> threetwoText;
|
||||||
public TMP_Text threethreeText;
|
public TMP_Text threethreeText;
|
||||||
@@ -47,9 +46,6 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
energia = FindObjectOfType<Energia>();
|
energia = FindObjectOfType<Energia>();
|
||||||
|
|
||||||
helyszinAktivalasSzamlalo = new int[12];
|
helyszinAktivalasSzamlalo = new int[12];
|
||||||
for (int i = 0; i < helyszinAktivalasSzamlalo.Length; i++){
|
|
||||||
helyszinAktivalasSzamlalo[i] = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HelyszinAktivalas()
|
public void HelyszinAktivalas()
|
||||||
@@ -58,6 +54,9 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
if (movement.jelenlegi_x == 1 && movement.jelenlegi_y == 1)
|
if (movement.jelenlegi_x == 1 && movement.jelenlegi_y == 1)
|
||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[0] == 2) return; //ketszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[0] == 2) return; //ketszer lehet aktivalni
|
||||||
|
|
||||||
|
if((akciopont.getAkciopont() < 1 || energia.getEnergiasavIndex() > 28) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
//ugynokcsapat oles barhol tolteny nelkul
|
//ugynokcsapat oles barhol tolteny nelkul
|
||||||
targyak.DroidGepagyu();
|
targyak.DroidGepagyu();
|
||||||
|
|
||||||
@@ -74,11 +73,14 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[1] == 1) return; //egyszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[1] == 1) return; //egyszer lehet aktivalni
|
||||||
|
|
||||||
|
if((energia.getEnergiasavIndex() > 27) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
upgrade.canUpgrade = true;
|
upgrade.canUpgrade = true;
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||||
|
|
||||||
if(!targyak.matavtaviranyitoAktivalva){
|
if(!targyak.matavtaviranyitoAktivalva){
|
||||||
//akciopont.akciopont++;
|
//akciopont.akciopont++;
|
||||||
akciopont.UpdateAkciopont(1);
|
//akciopont.UpdateAkciopont(1);
|
||||||
energia.csokkenEnergia(2);
|
energia.csokkenEnergia(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +92,8 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[2] == 1) return; //egyszer lehet aktivalni
|
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
|
targyak.lathatatlanOltozetAktivalva = true; //mint a targy
|
||||||
if(!targyak.matavtaviranyitoAktivalva){
|
if(!targyak.matavtaviranyitoAktivalva){
|
||||||
energia.csokkenEnergia(1);
|
energia.csokkenEnergia(1);
|
||||||
@@ -104,9 +107,12 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[3] == 1) return; //egyszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[3] == 1) return; //egyszer lehet aktivalni
|
||||||
|
|
||||||
|
if((akciopont.getAkciopont() < 1 || energia.getEnergiasavIndex() > 28) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
//kapsz egy targyat
|
//kapsz egy targyat
|
||||||
targyak.RandomTargy();
|
targyak.RandomTargy();
|
||||||
targyak.targy_szamlalo++;
|
targyak.targy_szamlalo++;
|
||||||
|
|
||||||
if(!targyak.matavtaviranyitoAktivalva){
|
if(!targyak.matavtaviranyitoAktivalva){
|
||||||
akciopont.UpdateAkciopont(-1);
|
akciopont.UpdateAkciopont(-1);
|
||||||
energia.csokkenEnergia(1);
|
energia.csokkenEnergia(1);
|
||||||
@@ -120,6 +126,8 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[4] == 2) return; //ketszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[4] == 2) return; //ketszer lehet aktivalni
|
||||||
|
|
||||||
|
if((akciopont.getAkciopont() < 1) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
///dobj paros +3 ap paratlan -1 energia
|
///dobj paros +3 ap paratlan -1 energia
|
||||||
int eredmeny = UnityEngine.Random.Range(1,7);
|
int eredmeny = UnityEngine.Random.Range(1,7);
|
||||||
Debug.Log("Dobas eredmeny: " + eredmeny);
|
Debug.Log("Dobas eredmeny: " + eredmeny);
|
||||||
@@ -151,6 +159,8 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[6] == 2) return; //ketszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[6] == 2) return; //ketszer lehet aktivalni
|
||||||
|
|
||||||
|
if((akciopont.getAkciopont() < 2) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
//1 fejlesztes ingyen
|
//1 fejlesztes ingyen
|
||||||
upgrade.canUpgrade = true;
|
upgrade.canUpgrade = true;
|
||||||
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Fejlesztes);
|
||||||
@@ -181,6 +191,8 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[8] == 1) return; //egyszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[8] == 1) return; //egyszer lehet aktivalni
|
||||||
|
|
||||||
|
if((akciopont.getAkciopont() < 2) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
targyak.RandomTargy();
|
targyak.RandomTargy();
|
||||||
targyak.targy_szamlalo++;
|
targyak.targy_szamlalo++;
|
||||||
if(!targyak.matavtaviranyitoAktivalva){
|
if(!targyak.matavtaviranyitoAktivalva){
|
||||||
@@ -195,8 +207,12 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[9] == 2) return; //ketszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[9] == 2) return; //ketszer lehet aktivalni
|
||||||
|
|
||||||
|
if((akciopont.getAkciopont() < 1) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
//+4 tolteny
|
//+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){
|
if(!targyak.matavtaviranyitoAktivalva){
|
||||||
akciopont.UpdateAkciopont(0); //betarazasba levon egyet (csak placeholder)
|
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(helyszinAktivalasSzamlalo[10] == 1) return; //egyszer lehet aktivalni
|
||||||
|
|
||||||
|
if((energia.getEnergiasavIndex() > 28) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
//Dobj! Megkapod a targyat.
|
//Dobj! Megkapod a targyat.
|
||||||
targyak.RandomTargy();
|
targyak.RandomTargy();
|
||||||
targyak.targy_szamlalo++;
|
targyak.targy_szamlalo++;
|
||||||
@@ -224,6 +242,8 @@ public class helyszinaktivalas : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if(helyszinAktivalasSzamlalo[11] == 2) return; //ketszer lehet aktivalni
|
if(helyszinAktivalasSzamlalo[11] == 2) return; //ketszer lehet aktivalni
|
||||||
|
|
||||||
|
if((akciopont.getAkciopont() < 1) && !targyak.matavtaviranyitoAktivalva) return;
|
||||||
|
|
||||||
//+1 elet
|
//+1 elet
|
||||||
elet.Eletplusz();
|
elet.Eletplusz();
|
||||||
if(!targyak.matavtaviranyitoAktivalva){
|
if(!targyak.matavtaviranyitoAktivalva){
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Sockets;
|
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
|
||||||
public class jatekmanager : MonoBehaviour
|
public class jatekmanager : MonoBehaviour
|
||||||
{
|
{
|
||||||
@@ -23,7 +23,7 @@ public class jatekmanager : MonoBehaviour
|
|||||||
public GameObject hackeles;
|
public GameObject hackeles;
|
||||||
public GameObject rolldice;
|
public GameObject rolldice;
|
||||||
public GameObject test;
|
public GameObject test;
|
||||||
|
public GameObject harc;
|
||||||
|
|
||||||
//script-ek implementalasa
|
//script-ek implementalasa
|
||||||
private Elet elet;
|
private Elet elet;
|
||||||
@@ -36,6 +36,8 @@ public class jatekmanager : MonoBehaviour
|
|||||||
private TurnManager turnManager;
|
private TurnManager turnManager;
|
||||||
private Source source;
|
private Source source;
|
||||||
private vegpontozas vegpontozas;
|
private vegpontozas vegpontozas;
|
||||||
|
private AudioManager audioManager;
|
||||||
|
private MessageBox messageBox;
|
||||||
|
|
||||||
//ügynökcsapatok implementálása
|
//ügynökcsapatok implementálása
|
||||||
public TMP_Text[] oneone;
|
public TMP_Text[] oneone;
|
||||||
@@ -59,9 +61,37 @@ public class jatekmanager : MonoBehaviour
|
|||||||
public static event Action<GameState> OnGameStateChanged;
|
public static event Action<GameState> OnGameStateChanged;
|
||||||
public Button helyszinaktivalasBtn;
|
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()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
//ideiglenes amig rajovok kell e az uj helyszinaktivalas
|
||||||
|
FindObjectOfType<Helyszinaktivalas1>().enabled = false;
|
||||||
|
|
||||||
Instance = this;
|
Instance = this;
|
||||||
|
|
||||||
|
mainCanvas.SetActive(false); //helyszin sorsolas animacio miatt
|
||||||
|
helyszinCanvas.SetActive(false);
|
||||||
|
helyszinSorsolasCanvas.SetActive(true);
|
||||||
|
palyaSprite.SetActive(false);
|
||||||
|
playerSprite.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
@@ -76,13 +106,23 @@ public class jatekmanager : MonoBehaviour
|
|||||||
turnManager = FindObjectOfType<TurnManager>();
|
turnManager = FindObjectOfType<TurnManager>();
|
||||||
source = FindObjectOfType<Source>();
|
source = FindObjectOfType<Source>();
|
||||||
vegpontozas = FindObjectOfType<vegpontozas>();
|
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)
|
public void UpdateGameState(GameState newState)
|
||||||
{
|
{
|
||||||
State = newState;
|
//State = newState;
|
||||||
|
Debug.Log("<color=orange>New state: " + newState + "</color>");
|
||||||
|
|
||||||
switch (newState)
|
switch (newState)
|
||||||
{
|
{
|
||||||
@@ -101,6 +141,14 @@ public class jatekmanager : MonoBehaviour
|
|||||||
case GameState.Vesztette:
|
case GameState.Vesztette:
|
||||||
HandleVesztette();
|
HandleVesztette();
|
||||||
break;
|
break;
|
||||||
|
case GameState.UgynokValasztas:
|
||||||
|
HandleUgynokValasztas();
|
||||||
|
break;
|
||||||
|
case GameState.Nev:
|
||||||
|
HandleNev();
|
||||||
|
break;
|
||||||
|
case GameState.Pause:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException(nameof(newState), newState, null);
|
throw new ArgumentOutOfRangeException(nameof(newState), newState, null);
|
||||||
}
|
}
|
||||||
@@ -114,11 +162,68 @@ public class jatekmanager : MonoBehaviour
|
|||||||
Akcio,
|
Akcio,
|
||||||
Fejlesztes,
|
Fejlesztes,
|
||||||
Ugynok,
|
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()
|
private async void HandleKorkezdet()
|
||||||
{
|
{
|
||||||
|
messageBox.SendMessageToBox("Dobj a kockával");
|
||||||
|
|
||||||
rolldice.SetActive(true);
|
rolldice.SetActive(true);
|
||||||
|
|
||||||
energiafejlesztés.SetActive(false);
|
energiafejlesztés.SetActive(false);
|
||||||
@@ -131,6 +236,7 @@ public class jatekmanager : MonoBehaviour
|
|||||||
nyomozas.SetActive(false);
|
nyomozas.SetActive(false);
|
||||||
hackeles.SetActive(false);
|
hackeles.SetActive(false);
|
||||||
helyszinaktivalasBtn.gameObject.SetActive(false);
|
helyszinaktivalasBtn.gameObject.SetActive(false);
|
||||||
|
harc.SetActive(false);
|
||||||
//test.SetActive(false);
|
//test.SetActive(false);
|
||||||
|
|
||||||
//ha ugynok state-el vegezne kapcsoljon vissza mindent
|
//ha ugynok state-el vegezne kapcsoljon vissza mindent
|
||||||
@@ -161,9 +267,83 @@ public class jatekmanager : MonoBehaviour
|
|||||||
Debug.Log((upgrade.getUjradobasIndex() + 1) + " ; ennyi dobásod van összesen");
|
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()
|
private async void HandleFejlesztes()
|
||||||
{
|
{
|
||||||
|
//uzenetBox.text = "Válassz fejlesztést";
|
||||||
|
messageBox.SendMessageToBox("Válassz fejlesztést");
|
||||||
|
|
||||||
energiafejlesztés.SetActive(true);
|
energiafejlesztés.SetActive(true);
|
||||||
akciofejlesztés.SetActive(true);
|
akciofejlesztés.SetActive(true);
|
||||||
harcfejlesztés.SetActive(true);
|
harcfejlesztés.SetActive(true);
|
||||||
@@ -172,6 +352,7 @@ public class jatekmanager : MonoBehaviour
|
|||||||
kovetkezokor.SetActive(false);
|
kovetkezokor.SetActive(false);
|
||||||
//rolldice.SetActive(false);
|
//rolldice.SetActive(false);
|
||||||
helyszinaktivalasBtn.gameObject.SetActive(false);
|
helyszinaktivalasBtn.gameObject.SetActive(false);
|
||||||
|
harc.SetActive(false);
|
||||||
|
|
||||||
betarazas.SetActive(false);
|
betarazas.SetActive(false);
|
||||||
nyomozas.SetActive(false);
|
nyomozas.SetActive(false);
|
||||||
@@ -180,6 +361,9 @@ public class jatekmanager : MonoBehaviour
|
|||||||
|
|
||||||
private async void HandleAkcio()
|
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
|
//itt a movement bekapcsol
|
||||||
kovetkezokor.SetActive(true);
|
kovetkezokor.SetActive(true);
|
||||||
betarazas.SetActive(true);
|
betarazas.SetActive(true);
|
||||||
@@ -191,10 +375,25 @@ public class jatekmanager : MonoBehaviour
|
|||||||
harcfejlesztés.SetActive(false);
|
harcfejlesztés.SetActive(false);
|
||||||
ujradobasfejlesztés.SetActive(false);
|
ujradobasfejlesztés.SetActive(false);
|
||||||
hackfejlesztés.SetActive(false);
|
hackfejlesztés.SetActive(false);
|
||||||
|
harc.SetActive(true);
|
||||||
|
|
||||||
kovetkezokor.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()
|
private async void HandleVesztette()
|
||||||
@@ -204,13 +403,28 @@ public class jatekmanager : MonoBehaviour
|
|||||||
JatekosVesztett();
|
JatekosVesztett();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update() {
|
private void Update()
|
||||||
|
{
|
||||||
/*if(jatekosvesztett){
|
/*if(jatekosvesztett){
|
||||||
SceneManager.LoadScene("JatekosVesztett");
|
SceneManager.LoadScene("JatekosVesztett");
|
||||||
}
|
}
|
||||||
if(jatekosnyert){
|
if(jatekosnyert){
|
||||||
SceneManager.LoadScene("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)
|
private async void ugynokDeaktivalas(bool bekapcsolas)
|
||||||
@@ -245,6 +459,7 @@ public class jatekmanager : MonoBehaviour
|
|||||||
movement.threetwo_Collider.gameObject.SetActive(bekapcsolas);
|
movement.threetwo_Collider.gameObject.SetActive(bekapcsolas);
|
||||||
movement.threethree_Collider.gameObject.SetActive(bekapcsolas);
|
movement.threethree_Collider.gameObject.SetActive(bekapcsolas);
|
||||||
movement.threefour_Collider.gameObject.SetActive(bekapcsolas);
|
movement.threefour_Collider.gameObject.SetActive(bekapcsolas);
|
||||||
|
harc.SetActive(bekapcsolas);
|
||||||
|
|
||||||
targyak.hackerFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
targyak.hackerFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||||
targyak.lathatatlanFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
targyak.lathatatlanFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||||
@@ -256,102 +471,12 @@ public class jatekmanager : MonoBehaviour
|
|||||||
dice.dice2btnBtn.gameObject.SetActive(bekapcsolas);
|
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()
|
public void JatekosNyert()
|
||||||
{
|
{
|
||||||
Debug.Log("Játékos nyerésének vizsgálata.");
|
Debug.Log("Játékos nyerésének vizsgálata.");
|
||||||
Debug.Log("A forrás oszlopa:" + source.oszlop);
|
Debug.Log("A forrás oszlopa:" + source.oszlop);
|
||||||
Debug.Log("A forrás sora:" + source.sor[0]);
|
Debug.Log("A forrás sora:" + source.sor[0]);
|
||||||
Debug.Log("");
|
//Debug.Log("");
|
||||||
Debug.Log("A te jelenlegi oszlopod:" + movement.jelenlegi_y);
|
Debug.Log("A te jelenlegi oszlopod:" + movement.jelenlegi_y);
|
||||||
Debug.Log("A te jelenlegi sorod:" + movement.jelenlegi_x);
|
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
|
if (source.isNyitva == true && source.oszlop == movement.jelenlegi_x && source.sor[0] == movement.jelenlegi_y) //+ ugynokcsapat oles a helyszinen
|
||||||
@@ -444,9 +569,13 @@ public class jatekmanager : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(jatekosnyert){
|
if (jatekosnyert)
|
||||||
vegpontozas.pontkiiras();
|
{
|
||||||
SceneManager.LoadScene("JatekosNyert");
|
//vegpontozas.pontkiiras();
|
||||||
|
//SceneManager.LoadScene("JatekosNyert");
|
||||||
|
eredmenyText.text = "Nyertél";
|
||||||
|
pontszam.text = "Pontszámod: " + vegpontozas.OsszpontSzamalas().ToString();
|
||||||
|
eredmenyPanel.SetActive(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -721,9 +850,13 @@ public class jatekmanager : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(jatekosvesztett){
|
if (jatekosvesztett)
|
||||||
vegpontozas.pontkiiras();
|
{
|
||||||
SceneManager.LoadScene("JatekosVesztett");
|
//vegpontozas.pontkiiras();
|
||||||
|
//SceneManager.LoadScene("JatekosVesztett");
|
||||||
|
eredmenyText.text = "Vesztettél";
|
||||||
|
pontszam.text = "Pontszámod: " + vegpontozas.OsszpontSzamalas().ToString();
|
||||||
|
eredmenyPanel.SetActive(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
public class FrameRateSetter : MonoBehaviour
|
public class FrameRateSetter : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
//mobil miatt volt (30fps) van ertelme? nincs sok mozgas es animacio \\ ha lesz animacio vissza rakhato
|
||||||
private void Awake() {
|
private void Awake() {
|
||||||
Application.targetFrameRate = 60;
|
Application.targetFrameRate = 60;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,19 @@ public class MainMenu : MonoBehaviour
|
|||||||
{
|
{
|
||||||
public GameObject MainMenuObj;
|
public GameObject MainMenuObj;
|
||||||
public GameObject OptionsMenu;
|
public GameObject OptionsMenu;
|
||||||
|
public GameObject CreditsMenuObj;
|
||||||
public GameObject VideoButton;
|
public GameObject VideoButton;
|
||||||
|
|
||||||
|
private AudioManager audioManager;
|
||||||
|
|
||||||
|
private void Awake() {
|
||||||
|
audioManager = FindObjectOfType<AudioManager>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Start() {
|
||||||
|
//audioManager.Play("MenuMusic");
|
||||||
|
}
|
||||||
|
|
||||||
public void PlayGame()
|
public void PlayGame()
|
||||||
{
|
{
|
||||||
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
||||||
@@ -36,4 +47,9 @@ public class MainMenu : MonoBehaviour
|
|||||||
VideoButton.SetActive(true);
|
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);
|
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
|
//Quality
|
||||||
public void setQuality(int qualityIndex) {
|
public void setQuality(int qualityIndex) {
|
||||||
QualitySettings.SetQualityLevel(qualityIndex);
|
QualitySettings.SetQualityLevel(qualityIndex);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,60 @@ guid: 413457e37755a704786899a2420c6b9a
|
|||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
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
|
executionOrder: 0
|
||||||
icon: {instanceID: 0}
|
icon: {instanceID: 0}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -31,17 +31,13 @@ public class vegpontozas : MonoBehaviour
|
|||||||
targyak = FindObjectOfType<Targyak>();
|
targyak = FindObjectOfType<Targyak>();
|
||||||
akciok = FindObjectOfType<Akciok>();
|
akciok = FindObjectOfType<Akciok>();
|
||||||
elet = FindObjectOfType<Elet>();
|
elet = FindObjectOfType<Elet>();
|
||||||
|
|
||||||
if(SceneManager.GetActiveScene().name.Equals("JatekosNyert") || SceneManager.GetActiveScene().name.Equals("JatekosVesztett")){
|
|
||||||
szoveg.text = "Pontszam: " + pontbeolvas();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int OsszpontSzamalas()
|
public int OsszpontSzamalas()
|
||||||
{
|
{
|
||||||
energiapont = energia.energiasav_text.Length - (energia.getEnergiasavIndex() + 1);
|
energiapont = energia.energiasav_text.Length - (energia.getEnergiasavIndex() + 1);
|
||||||
megmaradtelet = elet.elet;
|
megmaradtelet = elet.elet;
|
||||||
tolteny = akciok.betarazott_tolteny;
|
tolteny = akciok.getBetarazottTolteny();
|
||||||
megszerzetttargyak = targyak.targy_szamlalo;
|
megszerzetttargyak = targyak.targy_szamlalo;
|
||||||
fejlesztespont = FejlesztesPont.fejlesztes_szamlalo;
|
fejlesztespont = FejlesztesPont.fejlesztes_szamlalo;
|
||||||
|
|
||||||
@@ -49,21 +45,4 @@ public class vegpontozas : MonoBehaviour
|
|||||||
//textMesh.text = "Összesen ennyi pontot szereztél:" + osszpont;
|
//textMesh.text = "Összesen ennyi pontot szereztél:" + osszpont;
|
||||||
return osszpont;
|
return osszpont;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void pontkiiras(){
|
|
||||||
StreamWriter writer = new StreamWriter(""+Application.persistentDataPath + "/pontszam.txt", false, Encoding.Default);
|
|
||||||
|
|
||||||
writer.Write(osszpont);
|
|
||||||
writer.Close();
|
|
||||||
|
|
||||||
Debug.Log("fajl kiirva");
|
|
||||||
}
|
|
||||||
|
|
||||||
public string pontbeolvas(){
|
|
||||||
StreamReader reader = new StreamReader(Application.persistentDataPath + "/pontszam.txt");
|
|
||||||
string pontszam = reader.ReadLine();
|
|
||||||
reader.Close();
|
|
||||||
|
|
||||||
return pontszam;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
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}
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _OutlineColor: {r: 0, g: 0, b: 0, 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: []
|
m_BuildTextureStacks: []
|
||||||
--- !u!114 &11400000
|
--- !u!114 &11400000
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
|
|||||||
@@ -2,13 +2,14 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.collab-proxy": "1.17.7",
|
"com.unity.collab-proxy": "1.17.7",
|
||||||
"com.unity.feature.2d": "1.0.0",
|
"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.ide.vscode": "1.2.5",
|
||||||
"com.unity.render-pipelines.universal": "12.1.8",
|
"com.unity.render-pipelines.universal": "12.1.8",
|
||||||
"com.unity.test-framework": "1.1.33",
|
"com.unity.test-framework": "1.1.33",
|
||||||
"com.unity.textmeshpro": "3.0.6",
|
"com.unity.textmeshpro": "3.0.6",
|
||||||
"com.unity.timeline": "1.6.4",
|
"com.unity.timeline": "1.6.4",
|
||||||
"com.unity.toolchain.linux-x86_64": "2.0.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.ugui": "1.0.0",
|
||||||
"com.unity.visualscripting": "1.7.8",
|
"com.unity.visualscripting": "1.7.8",
|
||||||
"com.unity.modules.ai": "1.0.0",
|
"com.unity.modules.ai": "1.0.0",
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"com.unity.ide.visualstudio": {
|
"com.unity.ide.visualstudio": {
|
||||||
"version": "2.0.16",
|
"version": "2.0.17",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -260,6 +260,16 @@
|
|||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"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": {
|
"com.unity.ugui": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
|
|||||||
@@ -11,10 +11,4 @@ EditorBuildSettings:
|
|||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/Jatek.unity
|
path: Assets/Scenes/Jatek.unity
|
||||||
guid: 2cda990e2423bbf4892e6590ba056729
|
guid: 2cda990e2423bbf4892e6590ba056729
|
||||||
- enabled: 1
|
|
||||||
path: Assets/Scenes/JatekosNyert.unity
|
|
||||||
guid: a108b4cd028a15b2ea25558d17a38712
|
|
||||||
- enabled: 1
|
|
||||||
path: Assets/Scenes/JatekosVesztett.unity
|
|
||||||
guid: d535560266fd1da128ac0ee38d7f347a
|
|
||||||
m_configObjects: {}
|
m_configObjects: {}
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ PlayerSettings:
|
|||||||
16:10: 1
|
16:10: 1
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 0.8
|
bundleVersion: 0.9.2.1
|
||||||
preloadedAssets: []
|
preloadedAssets: []
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
@@ -766,7 +766,8 @@ PlayerSettings:
|
|||||||
scriptingDefineSymbols: {}
|
scriptingDefineSymbols: {}
|
||||||
additionalCompilerArguments: {}
|
additionalCompilerArguments: {}
|
||||||
platformArchitecture: {}
|
platformArchitecture: {}
|
||||||
scriptingBackend: {}
|
scriptingBackend:
|
||||||
|
Standalone: 1
|
||||||
il2cppCompilerConfiguration: {}
|
il2cppCompilerConfiguration: {}
|
||||||
managedStrippingLevel: {}
|
managedStrippingLevel: {}
|
||||||
incrementalIl2cppBuild: {}
|
incrementalIl2cppBuild: {}
|
||||||
|
|||||||
@@ -41,3 +41,6 @@ TagManager:
|
|||||||
- name: Default
|
- name: Default
|
||||||
uniqueID: 0
|
uniqueID: 0
|
||||||
locked: 0
|
locked: 0
|
||||||
|
- name: Kezdohelyszin
|
||||||
|
uniqueID: 2685889865
|
||||||
|
locked: 0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# findthesource
|
# 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: 0200045e07010a5f5d5c542341765d4213164a7f797d7e347c7e1c60bab7656a
|
|
||||||
flags: 0
|
|
||||||
RecentlyUsedSceneGuid-2:
|
|
||||||
value: 07040753500359095b580a2641275e41444f19297c2d2363752d4a35b1b46339
|
|
||||||
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: 1470
|
|
||||||
height: 761
|
|
||||||
m_MinSize: {x: 300, y: 200}
|
|
||||||
m_MaxSize: {x: 24288, y: 16192}
|
|
||||||
vertical: 0
|
|
||||||
controlID: 3855
|
|
||||||
--- !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: 4621777727084837110, guid: 0000000000000000d000000000000000, type: 0}
|
|
||||||
m_Tooltip:
|
|
||||||
m_Pos:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 278
|
|
||||||
y: 95
|
|
||||||
width: 842.5
|
|
||||||
height: 430
|
|
||||||
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: 842.5, y: 409}
|
|
||||||
m_TextureFilterMode: 0
|
|
||||||
m_TextureHideFlags: 61
|
|
||||||
m_RenderIMGUI: 1
|
|
||||||
m_EnterPlayModeBehavior: 0
|
|
||||||
m_UseMipMap: 0
|
|
||||||
m_VSyncEnabled: 0
|
|
||||||
m_Gizmos: 0
|
|
||||||
m_Stats: 0
|
|
||||||
m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000
|
|
||||||
m_ZoomArea:
|
|
||||||
m_HRangeLocked: 0
|
|
||||||
m_VRangeLocked: 0
|
|
||||||
hZoomLockedByDefault: 0
|
|
||||||
vZoomLockedByDefault: 0
|
|
||||||
m_HBaseRangeMin: -210.625
|
|
||||||
m_HBaseRangeMax: 210.625
|
|
||||||
m_VBaseRangeMin: -102.25
|
|
||||||
m_VBaseRangeMax: 102.25
|
|
||||||
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: 842.5
|
|
||||||
height: 409
|
|
||||||
m_Scale: {x: 2, y: 2}
|
|
||||||
m_Translation: {x: 421.25, y: 204.5}
|
|
||||||
m_MarginLeft: 0
|
|
||||||
m_MarginRight: 0
|
|
||||||
m_MarginTop: 0
|
|
||||||
m_MarginBottom: 0
|
|
||||||
m_LastShownAreaInsideMargins:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: -210.625
|
|
||||||
y: -102.25
|
|
||||||
width: 421.25
|
|
||||||
height: 204.5
|
|
||||||
m_MinimalGUI: 1
|
|
||||||
m_defaultScale: 2
|
|
||||||
m_LastWindowPixelSize: {x: 1685, y: 860}
|
|
||||||
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: 1122.5
|
|
||||||
height: 761
|
|
||||||
m_MinSize: {x: 200, y: 200}
|
|
||||||
m_MaxSize: {x: 16192, y: 16192}
|
|
||||||
vertical: 1
|
|
||||||
controlID: 3856
|
|
||||||
--- !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: 1122.5
|
|
||||||
height: 451
|
|
||||||
m_MinSize: {x: 200, y: 100}
|
|
||||||
m_MaxSize: {x: 16192, y: 8096}
|
|
||||||
vertical: 0
|
|
||||||
controlID: 3857
|
|
||||||
--- !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: 278
|
|
||||||
height: 451
|
|
||||||
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: -3734745235275155857, guid: 0000000000000000d000000000000000, type: 0}
|
|
||||||
m_Tooltip:
|
|
||||||
m_Pos:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 95
|
|
||||||
width: 277
|
|
||||||
height: 430
|
|
||||||
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: 2afbfffff66b00002e6d000060760000a2760000fe770000
|
|
||||||
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: 0}
|
|
||||||
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: 278
|
|
||||||
y: 0
|
|
||||||
width: 844.5
|
|
||||||
height: 451
|
|
||||||
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: 8634526014445323508, guid: 0000000000000000d000000000000000, type: 0}
|
|
||||||
m_Tooltip:
|
|
||||||
m_Pos:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 278
|
|
||||||
y: 95
|
|
||||||
width: 842.5
|
|
||||||
height: 430
|
|
||||||
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: -101, y: -26}
|
|
||||||
snapOffsetDelta: {x: 0, y: 0}
|
|
||||||
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: -224}
|
|
||||||
snapOffsetDelta: {x: 0, y: 0}
|
|
||||||
snapCorner: 3
|
|
||||||
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: -5.0540023, y: -0.47023767, z: 0.040666837}
|
|
||||||
speed: 2
|
|
||||||
m_Value: {x: -5.0540023, y: -0.47023767, z: 0.040666837}
|
|
||||||
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: 13.287295
|
|
||||||
speed: 2
|
|
||||||
m_Value: 13.287295
|
|
||||||
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: 451
|
|
||||||
width: 1122.5
|
|
||||||
height: 310
|
|
||||||
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: -5179483145760003458, guid: 0000000000000000d000000000000000, type: 0}
|
|
||||||
m_Tooltip:
|
|
||||||
m_Pos:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 546
|
|
||||||
width: 1121.5
|
|
||||||
height: 289
|
|
||||||
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: 64
|
|
||||||
m_LastFolders:
|
|
||||||
- Assets/Scripts
|
|
||||||
m_LastFoldersGridSize: -1
|
|
||||||
m_LastProjectPath: /Users/bance/Documents/GitHub/findthesource
|
|
||||||
m_LockTracker:
|
|
||||||
m_IsLocked: 0
|
|
||||||
m_FolderTreeState:
|
|
||||||
scrollPos: {x: 0, y: 0}
|
|
||||||
m_SelectedIDs: 247a0000
|
|
||||||
m_LastClickedID: 31268
|
|
||||||
m_ExpandedIDs: 00000000027a000000ca9a3bffffff7f
|
|
||||||
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_AssetTreeState:
|
|
||||||
scrollPos: {x: 0, y: 0}
|
|
||||||
m_SelectedIDs:
|
|
||||||
m_LastClickedID: 0
|
|
||||||
m_ExpandedIDs: 00000000027a000000ca9a3bffffff7f
|
|
||||||
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: 96300000
|
|
||||||
m_LastClickedInstanceID: 12438
|
|
||||||
m_HadKeyboardFocusLastEvent: 1
|
|
||||||
m_ExpandedInstanceIDs: c6230000
|
|
||||||
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: 0}
|
|
||||||
m_GridSize: 64
|
|
||||||
m_SkipHiddenPackages: 0
|
|
||||||
m_DirectoriesAreaWidth: 207
|
|
||||||
--- !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: -4950941429401207979, guid: 0000000000000000d000000000000000, type: 0}
|
|
||||||
m_Tooltip:
|
|
||||||
m_Pos:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 546
|
|
||||||
width: 1121.5
|
|
||||||
height: 289
|
|
||||||
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:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children: []
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 1122.5
|
|
||||||
y: 0
|
|
||||||
width: 347.5
|
|
||||||
height: 761
|
|
||||||
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: -440750813802333266, guid: 0000000000000000d000000000000000, type: 0}
|
|
||||||
m_Tooltip:
|
|
||||||
m_Pos:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 1122.5
|
|
||||||
y: 95
|
|
||||||
width: 346.5
|
|
||||||
height: 740
|
|
||||||
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}
|
|
||||||
@@ -1,996 +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: 0
|
|
||||||
m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_PixelRect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 43
|
|
||||||
width: 1920
|
|
||||||
height: 997
|
|
||||||
m_ShowMode: 4
|
|
||||||
m_Title: Hierarchy
|
|
||||||
m_RootView: {fileID: 3}
|
|
||||||
m_MinSize: {x: 875, y: 300}
|
|
||||||
m_MaxSize: {x: 10000, y: 10000}
|
|
||||||
m_Maximized: 1
|
|
||||||
--- !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: 0
|
|
||||||
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name: InspectorWindow
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children: []
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 1269
|
|
||||||
y: 0
|
|
||||||
width: 651
|
|
||||||
height: 947
|
|
||||||
m_MinSize: {x: 276, y: 71}
|
|
||||||
m_MaxSize: {x: 4001, y: 4021}
|
|
||||||
m_ActualView: {fileID: 17}
|
|
||||||
m_Panes:
|
|
||||||
- {fileID: 17}
|
|
||||||
m_Selected: 0
|
|
||||||
m_LastSelected: 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: 12008, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 4}
|
|
||||||
- {fileID: 6}
|
|
||||||
- {fileID: 5}
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1920
|
|
||||||
height: 997
|
|
||||||
m_MinSize: {x: 875, y: 300}
|
|
||||||
m_MaxSize: {x: 10000, y: 10000}
|
|
||||||
m_UseTopView: 1
|
|
||||||
m_TopViewHeight: 30
|
|
||||||
m_UseBottomView: 1
|
|
||||||
m_BottomViewHeight: 20
|
|
||||||
--- !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: 12011, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children: []
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1920
|
|
||||||
height: 30
|
|
||||||
m_MinSize: {x: 0, y: 0}
|
|
||||||
m_MaxSize: {x: 0, y: 0}
|
|
||||||
m_LastLoadedLayoutName:
|
|
||||||
--- !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: 12042, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children: []
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 977
|
|
||||||
width: 1920
|
|
||||||
height: 20
|
|
||||||
m_MinSize: {x: 0, y: 0}
|
|
||||||
m_MaxSize: {x: 0, y: 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: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 7}
|
|
||||||
- {fileID: 2}
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 30
|
|
||||||
width: 1920
|
|
||||||
height: 947
|
|
||||||
m_MinSize: {x: 300, y: 200}
|
|
||||||
m_MaxSize: {x: 24288, y: 16192}
|
|
||||||
vertical: 0
|
|
||||||
controlID: 110
|
|
||||||
--- !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: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 8}
|
|
||||||
- {fileID: 11}
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1269
|
|
||||||
height: 947
|
|
||||||
m_MinSize: {x: 200, y: 200}
|
|
||||||
m_MaxSize: {x: 16192, y: 16192}
|
|
||||||
vertical: 1
|
|
||||||
controlID: 111
|
|
||||||
--- !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: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 9}
|
|
||||||
- {fileID: 10}
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1269
|
|
||||||
height: 534
|
|
||||||
m_MinSize: {x: 200, y: 100}
|
|
||||||
m_MaxSize: {x: 16192, y: 8096}
|
|
||||||
vertical: 0
|
|
||||||
controlID: 112
|
|
||||||
--- !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:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children: []
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 237
|
|
||||||
height: 534
|
|
||||||
m_MinSize: {x: 201, y: 221}
|
|
||||||
m_MaxSize: {x: 4001, y: 4021}
|
|
||||||
m_ActualView: {fileID: 13}
|
|
||||||
m_Panes:
|
|
||||||
- {fileID: 13}
|
|
||||||
m_Selected: 0
|
|
||||||
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: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name: SceneView
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children: []
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 237
|
|
||||||
y: 0
|
|
||||||
width: 1032
|
|
||||||
height: 534
|
|
||||||
m_MinSize: {x: 202, y: 221}
|
|
||||||
m_MaxSize: {x: 4002, y: 4021}
|
|
||||||
m_ActualView: {fileID: 14}
|
|
||||||
m_Panes:
|
|
||||||
- {fileID: 14}
|
|
||||||
- {fileID: 12}
|
|
||||||
m_Selected: 0
|
|
||||||
m_LastSelected: 1
|
|
||||||
--- !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: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_Name: ConsoleWindow
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Children: []
|
|
||||||
m_Position:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 534
|
|
||||||
width: 1269
|
|
||||||
height: 413
|
|
||||||
m_MinSize: {x: 101, y: 121}
|
|
||||||
m_MaxSize: {x: 4001, y: 4021}
|
|
||||||
m_ActualView: {fileID: 16}
|
|
||||||
m_Panes:
|
|
||||||
- {fileID: 15}
|
|
||||||
- {fileID: 16}
|
|
||||||
m_Selected: 1
|
|
||||||
m_LastSelected: 0
|
|
||||||
--- !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: 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: 237
|
|
||||||
y: 73
|
|
||||||
width: 1030
|
|
||||||
height: 513
|
|
||||||
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: 1030, y: 492}
|
|
||||||
m_TextureFilterMode: 0
|
|
||||||
m_TextureHideFlags: 61
|
|
||||||
m_RenderIMGUI: 1
|
|
||||||
m_EnterPlayModeBehavior: 0
|
|
||||||
m_UseMipMap: 0
|
|
||||||
m_VSyncEnabled: 0
|
|
||||||
m_Gizmos: 0
|
|
||||||
m_Stats: 0
|
|
||||||
m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000
|
|
||||||
m_ZoomArea:
|
|
||||||
m_HRangeLocked: 0
|
|
||||||
m_VRangeLocked: 0
|
|
||||||
hZoomLockedByDefault: 0
|
|
||||||
vZoomLockedByDefault: 0
|
|
||||||
m_HBaseRangeMin: -515
|
|
||||||
m_HBaseRangeMax: 515
|
|
||||||
m_VBaseRangeMin: -246
|
|
||||||
m_VBaseRangeMax: 246
|
|
||||||
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: 0
|
|
||||||
m_EnableSliderZoomHorizontal: 0
|
|
||||||
m_EnableSliderZoomVertical: 0
|
|
||||||
m_UniformScale: 1
|
|
||||||
m_UpDirection: 1
|
|
||||||
m_DrawArea:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 21
|
|
||||||
width: 1030
|
|
||||||
height: 492
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Translation: {x: 515, y: 246}
|
|
||||||
m_MarginLeft: 0
|
|
||||||
m_MarginRight: 0
|
|
||||||
m_MarginTop: 0
|
|
||||||
m_MarginBottom: 0
|
|
||||||
m_LastShownAreaInsideMargins:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: -515
|
|
||||||
y: -246
|
|
||||||
width: 1030
|
|
||||||
height: 492
|
|
||||||
m_MinimalGUI: 1
|
|
||||||
m_defaultScale: 1
|
|
||||||
m_LastWindowPixelSize: {x: 1030, y: 513}
|
|
||||||
m_ClearInEditMode: 1
|
|
||||||
m_NoCameraWarning: 1
|
|
||||||
m_LowResolutionForAspectRatios: 01000000000000000000
|
|
||||||
m_XRRenderMode: 0
|
|
||||||
m_RenderTexture: {fileID: 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: 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: 73
|
|
||||||
width: 236
|
|
||||||
height: 513
|
|
||||||
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: 12fbffff
|
|
||||||
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: 0}
|
|
||||||
m_SearchString:
|
|
||||||
m_ExpandedScenes: []
|
|
||||||
m_CurrenRootInstanceID: 0
|
|
||||||
m_LockTracker:
|
|
||||||
m_IsLocked: 0
|
|
||||||
m_CurrentSortingName: TransformSorting
|
|
||||||
m_WindowGUID: 4c969a2b90040154d917609493e03593
|
|
||||||
--- !u!114 &14
|
|
||||||
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: 237
|
|
||||||
y: 73
|
|
||||||
width: 1030
|
|
||||||
height: 513
|
|
||||||
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: -101, y: -26}
|
|
||||||
snapOffsetDelta: {x: 0, y: 0}
|
|
||||||
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: -224}
|
|
||||||
snapOffsetDelta: {x: 0, y: 0}
|
|
||||||
snapCorner: 3
|
|
||||||
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: 1
|
|
||||||
m_SceneLighting: 1
|
|
||||||
m_2DMode: 1
|
|
||||||
m_isRotationLocked: 0
|
|
||||||
m_PlayAudio: 0
|
|
||||||
m_AudioPlay: 0
|
|
||||||
m_Position:
|
|
||||||
m_Target: {x: -4.3600006, y: 0, z: -10}
|
|
||||||
speed: 2
|
|
||||||
m_Value: {x: -4.3600006, y: 0, z: -10}
|
|
||||||
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: 12.124355
|
|
||||||
speed: 2
|
|
||||||
m_Value: 12.124355
|
|
||||||
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 &15
|
|
||||||
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: 607
|
|
||||||
width: 1268
|
|
||||||
height: 392
|
|
||||||
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: 64
|
|
||||||
m_LastFolders:
|
|
||||||
- Assets/Scripts
|
|
||||||
m_LastFoldersGridSize: -1
|
|
||||||
m_LastProjectPath: E:\dev\find the source\projekt\FindTheSource
|
|
||||||
m_LockTracker:
|
|
||||||
m_IsLocked: 0
|
|
||||||
m_FolderTreeState:
|
|
||||||
scrollPos: {x: 0, y: 0}
|
|
||||||
m_SelectedIDs: 3e7a0000
|
|
||||||
m_LastClickedID: 31294
|
|
||||||
m_ExpandedIDs: 000000001e7a0000
|
|
||||||
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_AssetTreeState:
|
|
||||||
scrollPos: {x: 0, y: 0}
|
|
||||||
m_SelectedIDs:
|
|
||||||
m_LastClickedID: 0
|
|
||||||
m_ExpandedIDs: 000000001e7a0000
|
|
||||||
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: ac6c0000
|
|
||||||
m_LastClickedInstanceID: 27820
|
|
||||||
m_HadKeyboardFocusLastEvent: 1
|
|
||||||
m_ExpandedInstanceIDs: c6230000
|
|
||||||
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: 0}
|
|
||||||
m_GridSize: 64
|
|
||||||
m_SkipHiddenPackages: 0
|
|
||||||
m_DirectoriesAreaWidth: 207
|
|
||||||
--- !u!114 &16
|
|
||||||
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: 607
|
|
||||||
width: 1268
|
|
||||||
height: 392
|
|
||||||
m_ViewDataDictionary: {fileID: 0}
|
|
||||||
m_OverlayCanvas:
|
|
||||||
m_LastAppliedPresetName: Default
|
|
||||||
m_SaveData: []
|
|
||||||
--- !u!114 &17
|
|
||||||
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: 1269
|
|
||||||
y: 73
|
|
||||||
width: 650
|
|
||||||
height: 926
|
|
||||||
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}
|
|
||||||
@@ -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