Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ae2ce6f20 | |||
| 470c3b661c | |||
| acc2570781 | |||
| 58fe57722d | |||
| 8d70560861 | |||
| 0042241f56 | |||
| 282faea747 | |||
| b331868005 | |||
| c6b6287052 | |||
|
|
afa4e4b50c | ||
|
|
34d45ac443 | ||
| 77cb3afd55 | |||
|
|
eefa40f1dc | ||
|
|
39e83dae63 | ||
| b0bfd2f034 | |||
|
|
1572f7db6d | ||
|
|
5415bd0a1a | ||
|
|
bd0dae80a0 | ||
| 45b782894c |
16
.gitignore
vendored
16
.gitignore
vendored
@@ -2,13 +2,14 @@
|
|||||||
#
|
#
|
||||||
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
|
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
|
||||||
#
|
#
|
||||||
[Ll]ibrary/
|
/[Ll]ibrary/
|
||||||
[Tt]emp/
|
/[Tt]emp/
|
||||||
[Oo]bj/
|
/[Oo]bj/
|
||||||
[Bb]uild/
|
/[Bb]uild/
|
||||||
[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
|
||||||
@@ -58,3 +59,4 @@ sysinfo.txt
|
|||||||
# Crashlytics generated file
|
# Crashlytics generated file
|
||||||
crashlytics-build.properties
|
crashlytics-build.properties
|
||||||
|
|
||||||
|
UserSettings/Layouts/default-2021.dwlt
|
||||||
|
|||||||
147
Assets/Main.mixer
Normal file
147
Assets/Main.mixer
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!243 &-8278190956376925970
|
||||||
|
AudioMixerGroupController:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Music
|
||||||
|
m_AudioMixer: {fileID: 24100000}
|
||||||
|
m_GroupID: bb6595b6ed279ee4d9d32d814a5de07d
|
||||||
|
m_Children: []
|
||||||
|
m_Volume: a6c678bb6e7ed8c4a9e8ed2de1b57121
|
||||||
|
m_Pitch: 75d6991556b34e344a343d76210738b1
|
||||||
|
m_Send: 00000000000000000000000000000000
|
||||||
|
m_Effects:
|
||||||
|
- {fileID: 8179030316469016573}
|
||||||
|
m_UserColorIndex: 0
|
||||||
|
m_Mute: 0
|
||||||
|
m_Solo: 0
|
||||||
|
m_BypassEffects: 0
|
||||||
|
--- !u!243 &-7755842500057852920
|
||||||
|
AudioMixerGroupController:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Sfx
|
||||||
|
m_AudioMixer: {fileID: 24100000}
|
||||||
|
m_GroupID: c35f361e0924baa42b9bc02d6dd2a18d
|
||||||
|
m_Children: []
|
||||||
|
m_Volume: 31bc5c8920a5e084bb8ac13ce5116a50
|
||||||
|
m_Pitch: c39d8e0beab9ae64c8ee9a4461f50ae9
|
||||||
|
m_Send: 00000000000000000000000000000000
|
||||||
|
m_Effects:
|
||||||
|
- {fileID: -7227639147278616804}
|
||||||
|
m_UserColorIndex: 0
|
||||||
|
m_Mute: 0
|
||||||
|
m_Solo: 0
|
||||||
|
m_BypassEffects: 0
|
||||||
|
--- !u!244 &-7227639147278616804
|
||||||
|
AudioMixerEffectController:
|
||||||
|
m_ObjectHideFlags: 3
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EffectID: 7cb225636800245498242022b6304aab
|
||||||
|
m_EffectName: Attenuation
|
||||||
|
m_MixLevel: 44713661e2bc63c4c8925ecc5cb97d2e
|
||||||
|
m_Parameters: []
|
||||||
|
m_SendTarget: {fileID: 0}
|
||||||
|
m_EnableWetMix: 0
|
||||||
|
m_Bypass: 0
|
||||||
|
--- !u!241 &24100000
|
||||||
|
AudioMixerController:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Main
|
||||||
|
m_OutputGroup: {fileID: 0}
|
||||||
|
m_MasterGroup: {fileID: 24300002}
|
||||||
|
m_Snapshots:
|
||||||
|
- {fileID: 24500006}
|
||||||
|
m_StartSnapshot: {fileID: 24500006}
|
||||||
|
m_SuspendThreshold: -80
|
||||||
|
m_EnableSuspend: 1
|
||||||
|
m_UpdateMode: 0
|
||||||
|
m_ExposedParameters:
|
||||||
|
- guid: c27725ff676d7f24dbd1f3c226a595c9
|
||||||
|
name: Master
|
||||||
|
- guid: a6c678bb6e7ed8c4a9e8ed2de1b57121
|
||||||
|
name: Music
|
||||||
|
- guid: 31bc5c8920a5e084bb8ac13ce5116a50
|
||||||
|
name: Sfx
|
||||||
|
m_AudioMixerGroupViews:
|
||||||
|
- guids:
|
||||||
|
- d297857404e191f458a5e8c271c53a13
|
||||||
|
- bb6595b6ed279ee4d9d32d814a5de07d
|
||||||
|
- c35f361e0924baa42b9bc02d6dd2a18d
|
||||||
|
name: View
|
||||||
|
m_CurrentViewIndex: 0
|
||||||
|
m_TargetSnapshot: {fileID: 24500006}
|
||||||
|
--- !u!243 &24300002
|
||||||
|
AudioMixerGroupController:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Master
|
||||||
|
m_AudioMixer: {fileID: 24100000}
|
||||||
|
m_GroupID: d297857404e191f458a5e8c271c53a13
|
||||||
|
m_Children:
|
||||||
|
- {fileID: -8278190956376925970}
|
||||||
|
- {fileID: -7755842500057852920}
|
||||||
|
m_Volume: c27725ff676d7f24dbd1f3c226a595c9
|
||||||
|
m_Pitch: 40b76980f0abe8f4da7d859596d64181
|
||||||
|
m_Send: 00000000000000000000000000000000
|
||||||
|
m_Effects:
|
||||||
|
- {fileID: 24400004}
|
||||||
|
m_UserColorIndex: 0
|
||||||
|
m_Mute: 0
|
||||||
|
m_Solo: 0
|
||||||
|
m_BypassEffects: 0
|
||||||
|
--- !u!244 &24400004
|
||||||
|
AudioMixerEffectController:
|
||||||
|
m_ObjectHideFlags: 3
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EffectID: e376c615d038fc74492eef278995aa9e
|
||||||
|
m_EffectName: Attenuation
|
||||||
|
m_MixLevel: 33f84a3c9d2de6a4093ad1fbba4f638f
|
||||||
|
m_Parameters: []
|
||||||
|
m_SendTarget: {fileID: 0}
|
||||||
|
m_EnableWetMix: 0
|
||||||
|
m_Bypass: 0
|
||||||
|
--- !u!245 &24500006
|
||||||
|
AudioMixerSnapshotController:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Snapshot
|
||||||
|
m_AudioMixer: {fileID: 24100000}
|
||||||
|
m_SnapshotID: 3a37b8bb5e255d248acceb2000138ffd
|
||||||
|
m_FloatValues:
|
||||||
|
31bc5c8920a5e084bb8ac13ce5116a50: 0
|
||||||
|
a6c678bb6e7ed8c4a9e8ed2de1b57121: 0
|
||||||
|
c27725ff676d7f24dbd1f3c226a595c9: 0
|
||||||
|
m_TransitionOverrides: {}
|
||||||
|
--- !u!244 &8179030316469016573
|
||||||
|
AudioMixerEffectController:
|
||||||
|
m_ObjectHideFlags: 3
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EffectID: b8aa68d2ca5a93849beea6e92af8d466
|
||||||
|
m_EffectName: Attenuation
|
||||||
|
m_MixLevel: c319a6d2cc8a5d447929c64ddd4c8e85
|
||||||
|
m_Parameters: []
|
||||||
|
m_SendTarget: {fileID: 0}
|
||||||
|
m_EnableWetMix: 0
|
||||||
|
m_Bypass: 0
|
||||||
8
Assets/Main.mixer.meta
Normal file
8
Assets/Main.mixer.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 911068ff86e0a0b4d8dae92436b938fa
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Resources/Models/Map objects/module3.blend
Normal file
BIN
Assets/Resources/Models/Map objects/module3.blend
Normal file
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 345137c8b40553842bf05ead1dab812e
|
guid: a611db572eb51f74daae283e06cb708c
|
||||||
ModelImporter:
|
ModelImporter:
|
||||||
serializedVersion: 21300
|
serializedVersion: 21300
|
||||||
internalIDToNameTable: []
|
internalIDToNameTable: []
|
||||||
Binary file not shown.
Binary file not shown.
BIN
Assets/Resources/Models/World Objects/haz1tukor.blend
Normal file
BIN
Assets/Resources/Models/World Objects/haz1tukor.blend
Normal file
Binary file not shown.
106
Assets/Resources/Models/World Objects/haz1tukor.blend.meta
Normal file
106
Assets/Resources/Models/World Objects/haz1tukor.blend.meta
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5e814191f087bc54b9b4c463419d91a5
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 21300
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 1
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 1
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Resources/Models/World Objects/haz2tukor.blend
Normal file
BIN
Assets/Resources/Models/World Objects/haz2tukor.blend
Normal file
Binary file not shown.
106
Assets/Resources/Models/World Objects/haz2tukor.blend.meta
Normal file
106
Assets/Resources/Models/World Objects/haz2tukor.blend.meta
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dde0de1a5a0540349960213281bdc74e
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 21300
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 1
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 1
|
||||||
|
weldVertices: 0
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 0
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Resources/Models/World Objects/haz3tukor.blend
Normal file
BIN
Assets/Resources/Models/World Objects/haz3tukor.blend
Normal file
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: fd275518d3aad0536b1b8b19df0306ad
|
guid: 54c04c01263edae47831b700835b66de
|
||||||
ModelImporter:
|
ModelImporter:
|
||||||
serializedVersion: 21300
|
serializedVersion: 21300
|
||||||
internalIDToNameTable: []
|
internalIDToNameTable: []
|
||||||
5796
Assets/Resources/Prefabs/WorldObjects/World1/haz1tukor.prefab
Normal file
5796
Assets/Resources/Prefabs/WorldObjects/World1/haz1tukor.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 801674bb4f54353d3966591ac2876a92
|
guid: 5822b88e98887c34383505b33c58d6da
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 8500f6075c56d47809b2a1e2dfb10d39
|
guid: f8302c5b02615834ab22b119484415c4
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
777
Assets/Resources/Prefabs/portal.prefab
Normal file
777
Assets/Resources/Prefabs/portal.prefab
Normal file
@@ -0,0 +1,777 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &2929230259048126914
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7555710079642402943}
|
||||||
|
- component: {fileID: 9020936011878326866}
|
||||||
|
- component: {fileID: 4307871413277752259}
|
||||||
|
- component: {fileID: 4471666878195634000}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Cube.001
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &7555710079642402943
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2929230259048126914}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
|
||||||
|
m_LocalPosition: {x: 16.96, y: 1, z: 3}
|
||||||
|
m_LocalScale: {x: 3, y: 1.5, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6339517539123052089}
|
||||||
|
m_RootOrder: 3
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &9020936011878326866
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2929230259048126914}
|
||||||
|
m_Mesh: {fileID: 4493585093827132993, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
--- !u!23 &4307871413277752259
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2929230259048126914}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: edb4146c95fe5b5419e3b63b2195a35a, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &4471666878195634000
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2929230259048126914}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9813062}
|
||||||
|
m_Center: {x: 0, y: 0, z: -0.009346782}
|
||||||
|
--- !u!1 &3024034475091196598
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3639375096958102035}
|
||||||
|
- component: {fileID: 3098633294925096656}
|
||||||
|
- component: {fileID: 1003427733278989853}
|
||||||
|
- component: {fileID: 3954303697620208318}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Lane2
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3639375096958102035
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3024034475091196598}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 20, y: 1.5, z: 0.1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6339517539123052089}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &3098633294925096656
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3024034475091196598}
|
||||||
|
m_Mesh: {fileID: -2228417370725966487, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
--- !u!23 &1003427733278989853
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3024034475091196598}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: -6478536213147159724, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &3954303697620208318
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3024034475091196598}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9999996}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &3272480234041735745
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 207342092159746623}
|
||||||
|
- component: {fileID: 5176121864448070459}
|
||||||
|
- component: {fileID: 2306325386182723177}
|
||||||
|
- component: {fileID: 6225738548844098565}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Lane3
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &207342092159746623
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3272480234041735745}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: -3}
|
||||||
|
m_LocalScale: {x: 20, y: 1.5, z: 0.1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6339517539123052089}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &5176121864448070459
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3272480234041735745}
|
||||||
|
m_Mesh: {fileID: -3329902420748629119, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
--- !u!23 &2306325386182723177
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3272480234041735745}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: -3846018093981099296, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &6225738548844098565
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3272480234041735745}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9999996}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &4160343983796892973
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7760970773660267683}
|
||||||
|
- component: {fileID: 2659797143609641104}
|
||||||
|
- component: {fileID: 3935483365857316961}
|
||||||
|
- component: {fileID: 6616751863906637115}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Cube.005
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &7760970773660267683
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4160343983796892973}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
|
||||||
|
m_LocalPosition: {x: 6.06, y: 1, z: -3}
|
||||||
|
m_LocalScale: {x: 4, y: 1.5, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6339517539123052089}
|
||||||
|
m_RootOrder: 6
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &2659797143609641104
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4160343983796892973}
|
||||||
|
m_Mesh: {fileID: 2212009239438826721, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
--- !u!23 &3935483365857316961
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4160343983796892973}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: edb4146c95fe5b5419e3b63b2195a35a, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &6616751863906637115
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4160343983796892973}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9999998}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0.000000059604645}
|
||||||
|
--- !u!1 &5010128113035299248
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1438032196087261245}
|
||||||
|
- component: {fileID: 3101181449901080936}
|
||||||
|
- component: {fileID: 8872074846257330580}
|
||||||
|
- component: {fileID: 2423964338186288210}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Cube.004
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1438032196087261245
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5010128113035299248}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
|
||||||
|
m_LocalPosition: {x: 10.96, y: 1, z: 3}
|
||||||
|
m_LocalScale: {x: 3, y: 1.5, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6339517539123052089}
|
||||||
|
m_RootOrder: 5
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &3101181449901080936
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5010128113035299248}
|
||||||
|
m_Mesh: {fileID: -5053925668127403250, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
--- !u!23 &8872074846257330580
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5010128113035299248}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: edb4146c95fe5b5419e3b63b2195a35a, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &2423964338186288210
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5010128113035299248}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9999998}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &5522169905146590627
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4531735727526535730}
|
||||||
|
- component: {fileID: 2722353312366116601}
|
||||||
|
- component: {fileID: 2640728111898194092}
|
||||||
|
- component: {fileID: 6946499112310209746}
|
||||||
|
- component: {fileID: 727025853522788282}
|
||||||
|
- component: {fileID: 1195928295993899704}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Portal
|
||||||
|
m_TagString: Portal
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4531735727526535730
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5522169905146590627}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
|
||||||
|
m_LocalPosition: {x: -4.22574, y: 4, z: 0}
|
||||||
|
m_LocalScale: {x: 0.1, y: 4.5, z: 4}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6339517539123052089}
|
||||||
|
m_RootOrder: 4
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &2722353312366116601
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5522169905146590627}
|
||||||
|
m_Mesh: {fileID: -8678823145569952518, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
--- !u!23 &2640728111898194092
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5522169905146590627}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: -876546973899608171, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!114 &6946499112310209746
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5522169905146590627}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d60fcfdeb5dfdfd4a9f8ba42c2ee9d63, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!65 &727025853522788282
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5522169905146590627}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9999998}
|
||||||
|
m_Center: {x: 0.00012207031, y: 0, z: 0}
|
||||||
|
--- !u!65 &1195928295993899704
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5522169905146590627}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9999998}
|
||||||
|
m_Center: {x: 0.00012207031, y: 0, z: 0}
|
||||||
|
--- !u!1 &6628356835725732790
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7173067689411519836}
|
||||||
|
- component: {fileID: 1906863910635033538}
|
||||||
|
- component: {fileID: 8030067069350678301}
|
||||||
|
- component: {fileID: 3174071384262805688}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Lane1
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &7173067689411519836
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6628356835725732790}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
|
||||||
|
m_LocalPosition: {x: -0, y: 0, z: 3}
|
||||||
|
m_LocalScale: {x: 20, y: 1.5, z: 0.1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6339517539123052089}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &1906863910635033538
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6628356835725732790}
|
||||||
|
m_Mesh: {fileID: -5495902117074765545, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
--- !u!23 &8030067069350678301
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6628356835725732790}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: -6478536213147159724, guid: a611db572eb51f74daae283e06cb708c, type: 3}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &3174071384262805688
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6628356835725732790}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 2, y: 1.9999998, z: 1.9999996}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &6679310150688957571
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6339517539123052089}
|
||||||
|
- component: {fileID: -2595595169083909655}
|
||||||
|
- component: {fileID: -8229982767009135219}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: portal
|
||||||
|
m_TagString: Ground
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6339517539123052089
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6679310150688957571}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -125.61424, y: 0, z: 51.095497}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 7173067689411519836}
|
||||||
|
- {fileID: 3639375096958102035}
|
||||||
|
- {fileID: 207342092159746623}
|
||||||
|
- {fileID: 7555710079642402943}
|
||||||
|
- {fileID: 4531735727526535730}
|
||||||
|
- {fileID: 1438032196087261245}
|
||||||
|
- {fileID: 7760970773660267683}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!54 &-2595595169083909655
|
||||||
|
Rigidbody:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6679310150688957571}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Mass: 1
|
||||||
|
m_Drag: 0
|
||||||
|
m_AngularDrag: 0.05
|
||||||
|
m_UseGravity: 0
|
||||||
|
m_IsKinematic: 0
|
||||||
|
m_Interpolate: 0
|
||||||
|
m_Constraints: 126
|
||||||
|
m_CollisionDetection: 0
|
||||||
|
--- !u!65 &-8229982767009135219
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6679310150688957571}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
7
Assets/Resources/Prefabs/portal.prefab.meta
Normal file
7
Assets/Resources/Prefabs/portal.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 922c9d3ed72c7904e92daec040e7e8ff
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b96955730a74a745b80bbb65782ca1f8
|
guid: 4c2e256ecd4c2004bb64349c00191e97
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 25608c1bc780145479ecff7d04b50126
|
||||||
|
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: 1
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bf33ceb4e70e33349bba9e70519c57e2
|
||||||
|
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: 1
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Resources/portal run splash.jpg
Normal file
BIN
Assets/Resources/portal run splash.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
171
Assets/Resources/portal run splash.jpg.meta
Normal file
171
Assets/Resources/portal run splash.jpg.meta
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a201df5ae079540469bed818e0e205ff
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
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: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
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: 0
|
||||||
|
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:
|
||||||
11757
Assets/Scenes/Menu.unity
11757
Assets/Scenes/Menu.unity
File diff suppressed because it is too large
Load Diff
@@ -43,12 +43,12 @@ public class CoinCounter : MonoBehaviour
|
|||||||
|
|
||||||
public void SetCoin(ulong number){
|
public void SetCoin(ulong number){
|
||||||
coin = number;
|
coin = number;
|
||||||
coinCounterUI.text = "Coins: " + coin.ToString();
|
coinCounterUI.text = coin.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddCoin(ulong number){
|
public void AddCoin(ulong number){
|
||||||
coin += number;
|
coin += number;
|
||||||
coinCounterUI.text = "Coins: " + coin.ToString();
|
coinCounterUI.text = coin.ToString();
|
||||||
|
|
||||||
/*writer = new StreamWriter(path, false, Encoding.Default);
|
/*writer = new StreamWriter(path, false, Encoding.Default);
|
||||||
writer.Write(coin);
|
writer.Write(coin);
|
||||||
@@ -57,7 +57,7 @@ public class CoinCounter : MonoBehaviour
|
|||||||
|
|
||||||
public void RemoveCoin(ulong number){
|
public void RemoveCoin(ulong number){
|
||||||
coin -= number;
|
coin -= number;
|
||||||
coinCounterUI.text = "Coins: " + coin.ToString();
|
coinCounterUI.text = coin.ToString();
|
||||||
|
|
||||||
/*writer = new StreamWriter(path, false, Encoding.Default);
|
/*writer = new StreamWriter(path, false, Encoding.Default);
|
||||||
writer.Write(coin);
|
writer.Write(coin);
|
||||||
|
|||||||
@@ -11,11 +11,18 @@ public class GroundController : MonoBehaviour
|
|||||||
public Material[] materials;
|
public Material[] materials;
|
||||||
public int materialIndex = 0;
|
public int materialIndex = 0;
|
||||||
public float groundMoveSpeed = 10f;
|
public float groundMoveSpeed = 10f;
|
||||||
private Vector3 lastSideObjectPos = new Vector3(0,0,0);
|
private Vector3 lastSideObjectPos = new Vector3(0, 0, 0);
|
||||||
|
[SerializeField] GameObject portalModul;
|
||||||
|
|
||||||
|
[SerializeField] private int groundCounter = 0;
|
||||||
|
[SerializeField] private int portalSpawnNumber = 15; //ennyi modulonkent spawnoljon portalt
|
||||||
|
|
||||||
//private CollectibleSpawner cs;
|
//private CollectibleSpawner cs;
|
||||||
|
|
||||||
private void Awake() {
|
private Material newMaterial;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
//cs = FindObjectOfType<CollectibleSpawner>();
|
//cs = FindObjectOfType<CollectibleSpawner>();
|
||||||
|
|
||||||
//Loading modules
|
//Loading modules
|
||||||
@@ -26,97 +33,182 @@ public class GroundController : MonoBehaviour
|
|||||||
|
|
||||||
//getting all of the ground objects by the tag
|
//getting all of the ground objects by the tag
|
||||||
ground = GameObject.FindGameObjectsWithTag("Ground");
|
ground = GameObject.FindGameObjectsWithTag("Ground");
|
||||||
if(ground.Length == 0){
|
if (ground.Length == 0)
|
||||||
|
{
|
||||||
Debug.Log("Nem talalt ground objectet");
|
Debug.Log("Nem talalt ground objectet");
|
||||||
}else{
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
Debug.Log("ground length: " + ground.Length);
|
Debug.Log("ground length: " + ground.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newMaterial = materials[0]; //correct color
|
||||||
|
Debug.Log(newMaterial.color);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update() {
|
private void Move(GameObject move)
|
||||||
|
{
|
||||||
|
move.transform.position = move.transform.position + new Vector3(0, 0, -groundMoveSpeed * Time.deltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
ground = GameObject.FindGameObjectsWithTag("Ground"); //torles miatt ujra le kell kerni a ground objecteket
|
ground = GameObject.FindGameObjectsWithTag("Ground"); //torles miatt ujra le kell kerni a ground objecteket
|
||||||
sideObjectsSpawned = GameObject.FindGameObjectsWithTag("SideObject");
|
sideObjectsSpawned = GameObject.FindGameObjectsWithTag("SideObject");
|
||||||
|
|
||||||
OrderArrayByZ(ground); //rendezzuk z szerint a talajt
|
OrderArrayByZ(ground); //rendezzuk z szerint a talajt
|
||||||
OrderArrayByZ(sideObjectsSpawned);
|
OrderArrayByZ(sideObjectsSpawned);
|
||||||
|
|
||||||
if(sideObjectsSpawned.Length > 0){
|
for (int i = 0; i < ground.Length; i++)
|
||||||
lastSideObjectPos = sideObjectsSpawned[sideObjectsSpawned.Length-1].transform.position;
|
{ //ground objecteket mozgatja
|
||||||
|
Move(ground[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < ground.Length; i++){ //ground objecteket mozgatja
|
for (int i = 0; i < sideObjectsSpawned.Length; i++)
|
||||||
ground[i].transform.position = ground[i].transform.position + new Vector3(0,0, -groundMoveSpeed * Time.deltaTime);
|
{
|
||||||
|
//sideObjectsSpawned[i].transform.position = sideObjectsSpawned[i].transform.position + new Vector3(0,0, -groundMoveSpeed * Time.deltaTime);
|
||||||
|
Move(sideObjectsSpawned[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < sideObjectsSpawned.Length; i++){
|
if (sideObjectsSpawned[sideObjectsSpawned.Length - 1].transform.position.z < 145)
|
||||||
sideObjectsSpawned[i].transform.position = sideObjectsSpawned[i].transform.position + new Vector3(0,0, -groundMoveSpeed * Time.deltaTime);
|
{
|
||||||
|
CreateNewSideObjects(false);
|
||||||
|
CreateNewSideObjects(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//uj ground letrehozas
|
//uj ground letrehozas
|
||||||
if(ground[ground.Length-1].transform.position.z <= 120){
|
if (ground[ground.Length - 1].transform.position.z <= 120)
|
||||||
|
{
|
||||||
|
if (groundCounter == portalSpawnNumber)
|
||||||
|
{
|
||||||
|
CreateNewGround(true);
|
||||||
|
groundCounter = 0; //ne menjen a vegtelensegig a counter
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
CreateNewGround();
|
CreateNewGround();
|
||||||
CreateNewSideObjects(false);
|
}
|
||||||
|
|
||||||
ground = GameObject.FindGameObjectsWithTag("Ground");
|
ground = GameObject.FindGameObjectsWithTag("Ground");
|
||||||
|
|
||||||
for(int i = 0; i < ground.Length; i++){
|
ModuleColorChange();
|
||||||
/*foreach (GameObject child in ground[i].transform){
|
|
||||||
if (child.name == "Lane1" || child.name == "Lane2" || child.name == "Lane3"){
|
|
||||||
Debug.Log(child.name + " " + transform.gameObject.name);
|
|
||||||
}
|
}
|
||||||
}*/
|
|
||||||
Transform[] lanes = new Transform[3];
|
|
||||||
lanes[0] = ground[i].transform.Find("Lane1");
|
|
||||||
lanes[1] = ground[i].transform.Find("Lane2");
|
|
||||||
lanes[2] = ground[i].transform.Find("Lane3");
|
|
||||||
|
|
||||||
foreach(var item in lanes){
|
|
||||||
item.GetComponent<MeshRenderer>().material = materials[materialIndex];
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//ellenorzi hogy torolheto e az object || mar nem szukseges mert van egy trigger box
|
|
||||||
/*foreach (var item in ground){
|
|
||||||
if(CheckGroundToDestroy(item)){
|
|
||||||
Destroy(item);
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//cs.SpawnCoin();
|
//cs.SpawnCoin();
|
||||||
}
|
}
|
||||||
|
|
||||||
private GameObject[] LoadPrefabs(string path){ //toltese be a palya objecteket a resources mappabol pl: "Prefabs/Modulok"
|
private GameObject[] LoadPrefabs(string path)
|
||||||
|
{ //toltese be a palya objecteket a resources mappabol pl: "Prefabs/Modulok"
|
||||||
GameObject[] arr = Resources.LoadAll<GameObject>(path);
|
GameObject[] arr = Resources.LoadAll<GameObject>(path);
|
||||||
|
|
||||||
return arr;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateNewSideObjects(bool isLeftSide){
|
private void CreateNewSideObjects(bool isLeftSide)
|
||||||
int random = UnityEngine.Random.Range(0, sideObjects.Length);
|
{
|
||||||
|
List<GameObject> side = new List<GameObject>(); //eltarolja egy oldal sideObjectjeit, hogy a jo oldalhoz nezze a kovetkezo elemet;
|
||||||
|
|
||||||
GameObject inst = sideObjects[random];
|
foreach (var item in sideObjectsSpawned)
|
||||||
Vector3 pos = new Vector3(0,0,0);
|
{
|
||||||
|
if (item.transform.position.x < 0 && isLeftSide)
|
||||||
if(inst.name == "haz1" && !isLeftSide){
|
{
|
||||||
pos = new Vector3(4,0,0); //check pos in editor TODO!!
|
side.Add(item); //bal oldal
|
||||||
}else if(inst.name == "haz2"){
|
}
|
||||||
pos = new Vector3(9,0,0);
|
else if (item.transform.position.x > 0 && !isLeftSide)
|
||||||
|
{
|
||||||
|
side.Add(item); //jobb oldal
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isLeftSide) pos.x = -pos.x;
|
int random = UnityEngine.Random.Range(0, sideObjects.Length); //random sorsolasa a modulhoz
|
||||||
|
//random = 0; //csak debug
|
||||||
|
|
||||||
Instantiate(inst, lastSideObjectPos + pos, ground[0].transform.rotation);
|
GameObject inst = sideObjects[random]; //random modul object eltarolas
|
||||||
|
|
||||||
|
//remake to get width
|
||||||
|
Vector3 offset = new Vector3(0, 0, 0);
|
||||||
|
|
||||||
|
if (side.Count > 0)
|
||||||
|
{
|
||||||
|
if (side[side.Count - 1].gameObject.name.Contains("haz1")) //haz1Clone
|
||||||
|
offset = new Vector3(0, 0, 15f); //TODO adjust
|
||||||
|
else if (side[side.Count - 1].gameObject.name.Contains("haz2"))
|
||||||
|
offset = new Vector3(0, 0, 20f); //TODO adjust
|
||||||
|
}
|
||||||
|
//
|
||||||
|
|
||||||
|
Vector3 pos = new Vector3(9f, -5f, -10f);
|
||||||
|
Quaternion rotation = inst.transform.rotation;
|
||||||
|
|
||||||
|
if (side.Count > 0)
|
||||||
|
//pos = sideObjectsSpawned[sideObjectsSpawned.Length - 1].transform.position + offset;
|
||||||
|
pos = side[side.Count - 1].transform.position + offset;
|
||||||
|
else
|
||||||
|
pos = pos + offset;
|
||||||
|
|
||||||
|
|
||||||
|
if (isLeftSide && pos.x > 0) //x negativ hogy a bal oldalra keruljon
|
||||||
|
pos.x = -pos.x;
|
||||||
|
|
||||||
|
|
||||||
|
Instantiate(inst, pos, rotation);
|
||||||
|
|
||||||
|
sideObjectsSpawned = GameObject.FindGameObjectsWithTag("SideObject");
|
||||||
|
OrderArrayByZ(sideObjectsSpawned);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void changeMaterialIndex(){
|
public void ModuleColorChange()
|
||||||
|
{
|
||||||
|
ground = GameObject.FindGameObjectsWithTag("Ground");
|
||||||
|
|
||||||
|
for (int i = 0; i < ground.Length; i++)
|
||||||
|
{
|
||||||
|
Transform[] lanes = new Transform[3];
|
||||||
|
lanes[0] = ground[i].transform.Find("Lane1");
|
||||||
|
lanes[1] = ground[i].transform.Find("Lane2");
|
||||||
|
lanes[2] = ground[i].transform.Find("Lane3");
|
||||||
|
|
||||||
|
foreach (var item in lanes)
|
||||||
|
{
|
||||||
|
item.GetComponent<MeshRenderer>().material = newMaterial;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool CheckGroundToDestroy(GameObject toCheck){
|
public void changeMaterialIndex()
|
||||||
|
{
|
||||||
|
int materialteszt;
|
||||||
|
bool teszteljtovabb = true;
|
||||||
|
|
||||||
|
while (teszteljtovabb)
|
||||||
|
{
|
||||||
|
materialteszt = UnityEngine.Random.Range(0, materials.Length);
|
||||||
|
Debug.Log(materialteszt);
|
||||||
|
|
||||||
|
if (materialteszt == materialIndex)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
materialIndex = materialteszt;
|
||||||
|
teszteljtovabb = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
teszteljtovabb = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ChangeMaterial(Material mat)
|
||||||
|
{
|
||||||
|
newMaterial = mat;
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool CheckGroundToDestroy(GameObject toCheck)
|
||||||
|
{
|
||||||
//z = -80 -nal lehet torolni
|
//z = -80 -nal lehet torolni
|
||||||
if(toCheck.transform.position.z <= -80){
|
if (toCheck.transform.position.z <= -80)
|
||||||
|
{
|
||||||
Debug.Log("elerte " + toCheck.name);
|
Debug.Log("elerte " + toCheck.name);
|
||||||
return true; //torolheto
|
return true; //torolheto
|
||||||
}
|
}
|
||||||
@@ -124,22 +216,37 @@ public class GroundController : MonoBehaviour
|
|||||||
return false; //nem torolheto
|
return false; //nem torolheto
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OrderArrayByZ(GameObject[] array){
|
private void OrderArrayByZ(GameObject[] array)
|
||||||
|
{
|
||||||
GameObject csere;
|
GameObject csere;
|
||||||
for (int i = 0; i < array.Length; i++){
|
for (int i = 0; i < array.Length; i++)
|
||||||
for(int j = 0; j < i; j++){
|
{
|
||||||
if(array[j].transform.position.z > array[j+1].transform.position.z){
|
for (int j = 0; j < i; j++)
|
||||||
|
{
|
||||||
|
if (array[j].transform.position.z > array[j + 1].transform.position.z)
|
||||||
|
{
|
||||||
csere = array[j];
|
csere = array[j];
|
||||||
array[j] = array[j+1];
|
array[j] = array[j + 1];
|
||||||
array[j+1] = csere;
|
array[j + 1] = csere;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateNewGround(){
|
private void CreateNewGround(bool portalModulSpawn = false)
|
||||||
|
{
|
||||||
int random = UnityEngine.Random.Range(0, loadFrom.Length);
|
int random = UnityEngine.Random.Range(0, loadFrom.Length);
|
||||||
|
|
||||||
|
GameObject inst;
|
||||||
|
|
||||||
|
if (!portalModulSpawn)
|
||||||
|
inst = loadFrom[random];
|
||||||
|
else
|
||||||
|
inst = portalModul;
|
||||||
|
|
||||||
|
|
||||||
//egy modullal elobb tolt be, annak az iranyanak megfeleloen, +80 a ket modul hossza
|
//egy modullal elobb tolt be, annak az iranyanak megfeleloen, +80 a ket modul hossza
|
||||||
Instantiate(loadFrom[random], new Vector3(0,0, ground[ground.Length-1].transform.position.z + 40), ground[ground.Length-1].transform.rotation);
|
Instantiate(inst, new Vector3(ground[ground.Length - 1].transform.position.x, ground[ground.Length - 1].transform.position.y, ground[ground.Length - 1].transform.position.z + 40), ground[ground.Length - 1].transform.rotation);
|
||||||
|
groundCounter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,14 +13,12 @@ public class DatabaseData : MonoBehaviour
|
|||||||
public PlayerList players; //jatekos adatok
|
public PlayerList players; //jatekos adatok
|
||||||
public HighScoreTableDataContainer htdc; //itt van a tomb
|
public HighScoreTableDataContainer htdc; //itt van a tomb
|
||||||
public HighScoreTable hst; //high score table ui
|
public HighScoreTable hst; //high score table ui
|
||||||
|
|
||||||
private StreamWriter writer;
|
|
||||||
public string jsondata; //json szoveg
|
|
||||||
|
|
||||||
private CoinCounter coinc;
|
private CoinCounter coinc;
|
||||||
|
|
||||||
|
public string jsondata; //json szoveg
|
||||||
public ulong coins = 0;
|
public ulong coins = 0;
|
||||||
|
|
||||||
|
private UnityWebRequest uwr;
|
||||||
|
|
||||||
private bool forceLocalUrl = true;
|
private bool forceLocalUrl = true;
|
||||||
private const int PORT = 24002;
|
private const int PORT = 24002;
|
||||||
@@ -31,6 +29,8 @@ public class DatabaseData : MonoBehaviour
|
|||||||
private string url = "nodejs.dszcbaross.edu.hu:" + PORT.ToString();
|
private string url = "nodejs.dszcbaross.edu.hu:" + PORT.ToString();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
public UnityWebRequest GetUnityWebRequest(){ return uwr; }
|
||||||
|
|
||||||
private void Awake() {
|
private void Awake() {
|
||||||
hst = FindObjectOfType<HighScoreTable>(); //High Score Table referencia
|
hst = FindObjectOfType<HighScoreTable>(); //High Score Table referencia
|
||||||
htdc = new HighScoreTableDataContainer(); //High Score Table Container objektum
|
htdc = new HighScoreTableDataContainer(); //High Score Table Container objektum
|
||||||
@@ -82,11 +82,12 @@ public class DatabaseData : MonoBehaviour
|
|||||||
//fuggvenyek amik meghivjak a rutint
|
//fuggvenyek amik meghivjak a rutint
|
||||||
public void GetPlayerData() => StartCoroutine(IGetPlayerData());
|
public void GetPlayerData() => StartCoroutine(IGetPlayerData());
|
||||||
public void GetHighScoreData() => StartCoroutine(IGetHighScoreData());
|
public void GetHighScoreData() => StartCoroutine(IGetHighScoreData());
|
||||||
public void PostNewPlayerData() => StartCoroutine(IPostNewPlayerData());
|
public void PostNewPlayerData(string postusername) => StartCoroutine(IPostNewPlayerData(postusername));
|
||||||
public void PostNewScoreData(int playerid, ulong score, string time) => StartCoroutine(IPostNewScoreData(playerid, score, time));
|
public void PostNewScoreData(int playerid, ulong score, string time) => StartCoroutine(IPostNewScoreData(playerid, score, time));
|
||||||
public void PostNewPalyaData() => StartCoroutine(IPostNewPalyaData());
|
public void PostNewPalyaData() => StartCoroutine(IPostNewPalyaData());
|
||||||
|
|
||||||
public void GetCoinDataCall(int userid) => StartCoroutine(GetCoinData(userid));
|
public void GetCoinDataCall(int userid) => StartCoroutine(GetCoinData(userid));
|
||||||
|
public void PostUpdateCoinData(ulong coins, int userid) => StartCoroutine(IPostUpdateCoinData(coins, userid));
|
||||||
public void PostNewCoinData(ulong coins, int userid) => StartCoroutine(IPostNewCoinData(coins, userid));
|
public void PostNewCoinData(ulong coins, int userid) => StartCoroutine(IPostNewCoinData(coins, userid));
|
||||||
|
|
||||||
public ulong GetCoins(int userid){
|
public ulong GetCoins(int userid){
|
||||||
@@ -100,7 +101,7 @@ public class DatabaseData : MonoBehaviour
|
|||||||
private IEnumerator GetCoinData(int userid){
|
private IEnumerator GetCoinData(int userid){
|
||||||
string uri = url + "/coinget";
|
string uri = url + "/coinget";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "GET");
|
uwr = new UnityWebRequest(uri, "GET");
|
||||||
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+userid+"}");
|
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+userid+"}");
|
||||||
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
@@ -137,11 +138,11 @@ public class DatabaseData : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
//input.text = "";
|
//input.text = "";
|
||||||
foreach(var p in players.player) {
|
/*foreach(var p in players.player) {
|
||||||
p.ConvertDate();
|
p.ConvertDate();
|
||||||
//adatok kiirasa kepernyore
|
//adatok kiirasa kepernyore
|
||||||
//input.text += "p_id: " + p.player_id + " username: " + p.player_name + " join date: " + p.joindate.printDate() + "\n";
|
//input.text += "p_id: " + p.player_id + " username: " + p.player_name + " join date: " + p.joindate.printDate() + "\n";
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -151,7 +152,7 @@ public class DatabaseData : MonoBehaviour
|
|||||||
private IEnumerator IGetCurretPlayer(int userid){
|
private IEnumerator IGetCurretPlayer(int userid){
|
||||||
string uri = url + "/currentplayer";
|
string uri = url + "/currentplayer";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "POST");
|
uwr = new UnityWebRequest(uri, "POST");
|
||||||
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+userid+"}"); //palya id megadasa
|
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+userid+"}"); //palya id megadasa
|
||||||
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend); //felkuldi a palya id-t
|
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend); //felkuldi a palya id-t
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
@@ -175,7 +176,7 @@ public class DatabaseData : MonoBehaviour
|
|||||||
private IEnumerator IGetHighScoreData(){
|
private IEnumerator IGetHighScoreData(){
|
||||||
string uri = url + "/toplist";
|
string uri = url + "/toplist";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "GET");
|
uwr = new UnityWebRequest(uri, "GET");
|
||||||
//byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+palya_id+"}"); //palya id megadasa
|
//byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+palya_id+"}"); //palya id megadasa
|
||||||
//uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend); //felkuldi a palya id-t
|
//uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend); //felkuldi a palya id-t
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
@@ -198,7 +199,7 @@ public class DatabaseData : MonoBehaviour
|
|||||||
private IEnumerator IGetHighScoreDataNew(){
|
private IEnumerator IGetHighScoreDataNew(){
|
||||||
string uri = url + "/toplist";
|
string uri = url + "/toplist";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "GET");
|
uwr = new UnityWebRequest(uri, "GET");
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
uwr.SetRequestHeader("Content-Type", "application/json");
|
uwr.SetRequestHeader("Content-Type", "application/json");
|
||||||
|
|
||||||
@@ -219,7 +220,7 @@ public class DatabaseData : MonoBehaviour
|
|||||||
private IEnumerator IGetPlayerCoins(string username){
|
private IEnumerator IGetPlayerCoins(string username){
|
||||||
string uri = url + "/coinget";
|
string uri = url + "/coinget";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "POST");
|
uwr = new UnityWebRequest(uri, "POST");
|
||||||
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+username+"}"); //palya id megadasa
|
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+username+"}"); //palya id megadasa
|
||||||
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend); //felkuldi a palya id-t
|
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend); //felkuldi a palya id-t
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
@@ -237,13 +238,13 @@ public class DatabaseData : MonoBehaviour
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
private IEnumerator IPostNewPlayerData() {
|
private IEnumerator IPostNewPlayerData(string postusername) {
|
||||||
//input.text = "loading...";
|
//input.text = "loading...";
|
||||||
|
|
||||||
string uri = url + "/newplayer";
|
string uri = url + "/newplayer";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "POST"); //post beallitasa
|
uwr = new UnityWebRequest(uri, "POST"); //post beallitasa
|
||||||
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{ \"bevitel1\":\"postusername\"}"); //felviteli json
|
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":\""+postusername+"\"}"); //felviteli json
|
||||||
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
uwr.SetRequestHeader("Content-Type", "application/json");
|
uwr.SetRequestHeader("Content-Type", "application/json");
|
||||||
@@ -255,6 +256,26 @@ public class DatabaseData : MonoBehaviour
|
|||||||
} else {
|
} else {
|
||||||
//input.text = uwr.downloadHandler.text; //vissza erzkezes arrol hogy sikeres a felvitel vagy nem
|
//input.text = uwr.downloadHandler.text; //vissza erzkezes arrol hogy sikeres a felvitel vagy nem
|
||||||
Debug.Log(uwr.downloadHandler.text);
|
Debug.Log(uwr.downloadHandler.text);
|
||||||
|
|
||||||
|
//hozzon letre uj coin adatot hogy a coinba ne ures adattal terjen vissza
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator IPostNewCoinData(ulong coins, int userid) {
|
||||||
|
string uri = url + "/newcoin";
|
||||||
|
|
||||||
|
uwr = new UnityWebRequest(uri, "POST"); //post beallitasa
|
||||||
|
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+userid+",\"bevitel2\":"+coins+"}"); //felviteli json
|
||||||
|
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
||||||
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
|
uwr.SetRequestHeader("Content-Type", "application/json");
|
||||||
|
|
||||||
|
yield return uwr.SendWebRequest();
|
||||||
|
|
||||||
|
if (uwr.isNetworkError) {
|
||||||
|
Debug.Log(uwr.error);
|
||||||
|
} else {
|
||||||
|
Debug.Log(uwr.downloadHandler.text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,7 +289,7 @@ public class DatabaseData : MonoBehaviour
|
|||||||
//ha van akkor akkor lekeri az id-t es ideiglenesen tarolja
|
//ha van akkor akkor lekeri az id-t es ideiglenesen tarolja
|
||||||
|
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "POST");
|
uwr = new UnityWebRequest(uri, "POST");
|
||||||
byte[] jsonToSend =
|
byte[] jsonToSend =
|
||||||
new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+playerid+",\"bevitel2\":"+score+",\"bevitel3\":\""+time+"\"}");
|
new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+playerid+",\"bevitel2\":"+score+",\"bevitel3\":\""+time+"\"}");
|
||||||
//playerid, points, time
|
//playerid, points, time
|
||||||
@@ -292,7 +313,7 @@ public class DatabaseData : MonoBehaviour
|
|||||||
|
|
||||||
string uri = url + "/newpalya";
|
string uri = url + "/newpalya";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "POST");
|
uwr = new UnityWebRequest(uri, "POST");
|
||||||
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{ \"bevitel1\":\"Easy3\"}");
|
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{ \"bevitel1\":\"Easy3\"}");
|
||||||
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
@@ -308,10 +329,10 @@ public class DatabaseData : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerator IPostNewCoinData(ulong coins, int userid) {
|
private IEnumerator IPostUpdateCoinData(ulong coins, int userid) {
|
||||||
string uri = url + "/coinUpdate";
|
string uri = url + "/coinUpdate";
|
||||||
|
|
||||||
var uwr = new UnityWebRequest(uri, "POST");
|
uwr = new UnityWebRequest(uri, "POST");
|
||||||
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+coins+",\"bevitel2\":"+userid+"}");
|
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes("{\"bevitel1\":"+coins+",\"bevitel2\":"+userid+"}");
|
||||||
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
uwr.uploadHandler = (UploadHandler)new UploadHandlerRaw(jsonToSend);
|
||||||
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
uwr.downloadHandler = (DownloadHandler)new DownloadHandlerBuffer();
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ public class PlayerController : MonoBehaviour
|
|||||||
private Vector2 startTouchPosition; //erintes kezdo pozicio
|
private Vector2 startTouchPosition; //erintes kezdo pozicio
|
||||||
private Vector2 endTouchPosition; //erintes vegpozicio
|
private Vector2 endTouchPosition; //erintes vegpozicio
|
||||||
|
|
||||||
|
[SerializeField] private Button buttonControl;
|
||||||
|
[SerializeField] private Button swipeControl;
|
||||||
|
|
||||||
public ControlType activeControllType; //ezt kell atallitani hogy swipe-os vagy button-os legyen a mozgas
|
public ControlType activeControllType; //ezt kell atallitani hogy swipe-os vagy button-os legyen a mozgas
|
||||||
|
|
||||||
public Button leftButton;
|
public Button leftButton;
|
||||||
@@ -35,13 +38,30 @@ public class PlayerController : MonoBehaviour
|
|||||||
cc = FindObjectOfType<CameraController>(); //kamera vezerlo referencia
|
cc = FindObjectOfType<CameraController>(); //kamera vezerlo referencia
|
||||||
isGrounded = FindObjectOfType<IsGrounded>();
|
isGrounded = FindObjectOfType<IsGrounded>();
|
||||||
|
|
||||||
//activeControllType = ControlType.Button;
|
if(activeControllType == ControlType.Swipe){
|
||||||
|
SwipeControl();
|
||||||
|
}
|
||||||
|
if(activeControllType == ControlType.Button){
|
||||||
|
ButtonControl();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setControllType(ControlType controlltype){
|
private void setControllType(ControlType controlltype){
|
||||||
activeControllType = controlltype;
|
activeControllType = controlltype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ButtonControl(){
|
||||||
|
setControllType(ControlType.Button);
|
||||||
|
swipeControl.image.color = Color.white;
|
||||||
|
buttonControl.image.color = Color.red;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SwipeControl(){
|
||||||
|
setControllType(ControlType.Swipe);
|
||||||
|
swipeControl.image.color = Color.red;
|
||||||
|
buttonControl.image.color = Color.white;
|
||||||
|
}
|
||||||
|
|
||||||
private void Update(){
|
private void Update(){
|
||||||
|
|
||||||
if(activeControllType == ControlType.Swipe){
|
if(activeControllType == ControlType.Swipe){
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ public class Score : MonoBehaviour
|
|||||||
|
|
||||||
private void Awake() {
|
private void Awake() {
|
||||||
score = 0;
|
score = 0;
|
||||||
scoreUI.text = "Score: " + score.ToString();
|
scoreUI.text = score.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addScore(ulong number){
|
public void addScore(ulong number){
|
||||||
score += number;
|
score += number;
|
||||||
scoreUI.text = "Score: " + score.ToString();
|
scoreUI.text = score.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,9 +24,12 @@ public class UsernameHandler : MonoBehaviour
|
|||||||
private void Awake() {
|
private void Awake() {
|
||||||
input.gameObject.SetActive(false);
|
input.gameObject.SetActive(false);
|
||||||
inputBackground.SetActive(false);
|
inputBackground.SetActive(false);
|
||||||
|
|
||||||
path = Application.persistentDataPath + "/username.txt";
|
path = Application.persistentDataPath + "/username.txt";
|
||||||
|
|
||||||
cc = FindObjectOfType<CoinCounter>();
|
cc = FindObjectOfType<CoinCounter>();
|
||||||
db = FindObjectOfType<DatabaseData>();
|
db = FindObjectOfType<DatabaseData>();
|
||||||
|
|
||||||
db.GetPlayerData();
|
db.GetPlayerData();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,9 +38,12 @@ public class UsernameHandler : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void ReadUsername(string username){ //kiirja az inputbol kapott usernevet fajlba
|
|
||||||
|
public void CallReadUsername(string username) => StartCoroutine(ReadUsername(username));
|
||||||
|
|
||||||
|
private IEnumerator ReadUsername(string username){ //kiirja az inputbol kapott usernevet fajlba
|
||||||
this.username = username;
|
this.username = username;
|
||||||
Debug.Log(this.username);
|
Debug.Log("username" + this.username);
|
||||||
|
|
||||||
writer = new StreamWriter(path, false, Encoding.Default);
|
writer = new StreamWriter(path, false, Encoding.Default);
|
||||||
writer.Write(username);
|
writer.Write(username);
|
||||||
@@ -47,16 +53,33 @@ public class UsernameHandler : MonoBehaviour
|
|||||||
inputBackground.SetActive(false);
|
inputBackground.SetActive(false);
|
||||||
usernameInputCanvas.gameObject.SetActive(false);
|
usernameInputCanvas.gameObject.SetActive(false);
|
||||||
|
|
||||||
getId();
|
db.PostNewPlayerData(username); //nincs meg ilyen username az adatbazisba ezert vigye fel uj kent
|
||||||
|
|
||||||
|
Debug.Log("<color=red>uwr before:</color>" + db.GetUnityWebRequest().downloadHandler.text);
|
||||||
|
yield return new WaitUntil(() => db.GetUnityWebRequest().downloadHandler.text.Equals("Uj username!"));
|
||||||
|
Debug.Log("<color=red>uwr after:</color>" + db.GetUnityWebRequest().downloadHandler.text);
|
||||||
|
|
||||||
|
|
||||||
|
//eltarol playerek frissitese
|
||||||
|
db.players.player = null;
|
||||||
|
db.GetPlayerData();
|
||||||
|
yield return new WaitUntil(() => db.players.player != null); //varjon amig lekeri az adatokat
|
||||||
|
|
||||||
|
getId(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getId(){
|
private void getId(bool newuser){
|
||||||
foreach(var item in db.players.player){
|
foreach(var item in db.players.player){
|
||||||
if(item.player_name.Equals(username)){
|
if(item.player_name.Equals(username)){
|
||||||
userid = item.player_id;
|
userid = item.player_id;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(newuser){
|
||||||
|
db.PostNewCoinData(0, userid); //ne uressel terjen vissza
|
||||||
|
}
|
||||||
|
|
||||||
db.GetCoinDataCall(userid);
|
db.GetCoinDataCall(userid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +112,7 @@ public class UsernameHandler : MonoBehaviour
|
|||||||
username = data;
|
username = data;
|
||||||
Debug.Log("username: " + username);
|
Debug.Log("username: " + username);
|
||||||
|
|
||||||
getId();
|
getId(false);
|
||||||
|
|
||||||
//StartCoroutine(waitForCoins());
|
//StartCoroutine(waitForCoins());
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ using TMPro;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
using UnityEngine.Audio;
|
||||||
|
using Cinemachine;
|
||||||
|
|
||||||
public class jatekmanager : MonoBehaviour
|
public class jatekmanager : MonoBehaviour
|
||||||
{
|
{
|
||||||
@@ -16,16 +18,21 @@ public class jatekmanager : MonoBehaviour
|
|||||||
public static event Action<GameState> OnGameStateChanged;
|
public static event Action<GameState> OnGameStateChanged;
|
||||||
|
|
||||||
//gameobjectek,gombok,scriptek
|
//gameobjectek,gombok,scriptek
|
||||||
public GameObject playButton;
|
public GameObject playGomb;
|
||||||
public GameObject garazs;
|
public GameObject garazs;
|
||||||
public GameObject homeGomb;
|
public GameObject homeGomb;
|
||||||
public GameObject settingsGomb;
|
public GameObject settingsGomb;
|
||||||
public GameObject shopGomb;
|
public GameObject shopGomb;
|
||||||
|
public GameObject volumeSlide;
|
||||||
|
public GameObject musicSlide;
|
||||||
|
public GameObject sfxSlide;
|
||||||
|
|
||||||
public GameObject goLeftButton;
|
public GameObject goLeftButton;
|
||||||
public GameObject jumpButton;
|
public GameObject jumpButton;
|
||||||
public GameObject goRightButton;
|
public GameObject goRightButton;
|
||||||
|
|
||||||
|
public GameObject boby;
|
||||||
|
|
||||||
public TMP_Text scoreText;
|
public TMP_Text scoreText;
|
||||||
public TMP_Text timerText;
|
public TMP_Text timerText;
|
||||||
|
|
||||||
@@ -36,6 +43,14 @@ public class jatekmanager : MonoBehaviour
|
|||||||
private Timer timer;
|
private Timer timer;
|
||||||
private CoinCounter cc;
|
private CoinCounter cc;
|
||||||
|
|
||||||
|
[SerializeField] private GameObject controlTypeSwitcher;
|
||||||
|
|
||||||
|
[SerializeField] private CinemachineVirtualCamera homeCamera;
|
||||||
|
|
||||||
|
|
||||||
|
public AudioMixer audioMixer;
|
||||||
|
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
Application.targetFrameRate = 60;
|
Application.targetFrameRate = 60;
|
||||||
@@ -53,6 +68,19 @@ public class jatekmanager : MonoBehaviour
|
|||||||
UpdateGameState(GameState.Home);
|
UpdateGameState(GameState.Home);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
public void UpdateGameState(GameState newState)
|
public void UpdateGameState(GameState newState)
|
||||||
{
|
{
|
||||||
State = newState;
|
State = newState;
|
||||||
@@ -96,17 +124,21 @@ public class jatekmanager : MonoBehaviour
|
|||||||
homeGomb.SetActive(true);
|
homeGomb.SetActive(true);
|
||||||
settingsGomb.SetActive(true);
|
settingsGomb.SetActive(true);
|
||||||
shopGomb.SetActive(true);
|
shopGomb.SetActive(true);
|
||||||
|
|
||||||
goLeftButton.SetActive(false);
|
goLeftButton.SetActive(false);
|
||||||
jumpButton.SetActive(false);
|
jumpButton.SetActive(false);
|
||||||
goRightButton.SetActive(false);
|
goRightButton.SetActive(false);
|
||||||
scoreText.gameObject.SetActive(false);
|
scoreText.gameObject.SetActive(false);
|
||||||
timerText.gameObject.SetActive(false);
|
timerText.gameObject.SetActive(false);
|
||||||
|
|
||||||
|
controlTypeSwitcher.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void HandleHome()
|
private async void HandleHome()
|
||||||
{
|
{
|
||||||
//deactivate buttons
|
//deactivate buttons
|
||||||
StartCoroutine(TimerHome());
|
StartCoroutine(TimerHome());
|
||||||
|
playGomb.SetActive(true);
|
||||||
GetComponent<GroundController>().enabled = false;
|
GetComponent<GroundController>().enabled = false;
|
||||||
GetComponent<PlayerController>().enabled = false;
|
GetComponent<PlayerController>().enabled = false;
|
||||||
goLeftButton.SetActive(false);
|
goLeftButton.SetActive(false);
|
||||||
@@ -115,27 +147,42 @@ public class jatekmanager : MonoBehaviour
|
|||||||
scoreText.gameObject.SetActive(false);
|
scoreText.gameObject.SetActive(false);
|
||||||
timerText.gameObject.SetActive(false);
|
timerText.gameObject.SetActive(false);
|
||||||
garazs.SetActive(true);
|
garazs.SetActive(true);
|
||||||
|
volumeSlide.SetActive(false);
|
||||||
|
musicSlide.SetActive(false);
|
||||||
|
sfxSlide.SetActive(false);
|
||||||
|
controlTypeSwitcher.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerator TimerHome()
|
IEnumerator TimerHome()
|
||||||
{
|
{
|
||||||
yield return new WaitForSecondsRealtime(2);
|
yield return new WaitForSecondsRealtime(2);
|
||||||
playButton.SetActive(true);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ChangeToSettings()
|
public void ChangeToSettings()
|
||||||
{
|
{
|
||||||
UpdateGameState(GameState.Settings);
|
UpdateGameState(GameState.Settings);
|
||||||
|
playGomb.SetActive(false);
|
||||||
|
volumeSlide.SetActive(true);
|
||||||
|
musicSlide.SetActive(true);
|
||||||
|
sfxSlide.SetActive(true);
|
||||||
|
controlTypeSwitcher.SetActive(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void HandleSettings()
|
private async void HandleSettings()
|
||||||
{
|
{
|
||||||
playButton.SetActive(false);
|
playGomb.SetActive(false);
|
||||||
goLeftButton.SetActive(false);
|
goLeftButton.SetActive(false);
|
||||||
jumpButton.SetActive(false);
|
jumpButton.SetActive(false);
|
||||||
goRightButton.SetActive(false);
|
goRightButton.SetActive(false);
|
||||||
scoreText.gameObject.SetActive(false);
|
scoreText.gameObject.SetActive(false);
|
||||||
timerText.gameObject.SetActive(false);
|
timerText.gameObject.SetActive(false);
|
||||||
|
playGomb.SetActive(false);
|
||||||
|
volumeSlide.SetActive(false);
|
||||||
|
musicSlide.SetActive(false);
|
||||||
|
sfxSlide.SetActive(false);
|
||||||
|
controlTypeSwitcher.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ChangeToShop()
|
public void ChangeToShop()
|
||||||
@@ -145,42 +192,56 @@ public class jatekmanager : MonoBehaviour
|
|||||||
|
|
||||||
private async void HandleShop()
|
private async void HandleShop()
|
||||||
{
|
{
|
||||||
playButton.SetActive(false);
|
playGomb.SetActive(false);
|
||||||
goLeftButton.SetActive(false);
|
goLeftButton.SetActive(false);
|
||||||
jumpButton.SetActive(false);
|
jumpButton.SetActive(false);
|
||||||
goRightButton.SetActive(false);
|
goRightButton.SetActive(false);
|
||||||
scoreText.gameObject.SetActive(false);
|
scoreText.gameObject.SetActive(false);
|
||||||
timerText.gameObject.SetActive(false);
|
timerText.gameObject.SetActive(false);
|
||||||
|
volumeSlide.SetActive(false);
|
||||||
|
musicSlide.SetActive(false);
|
||||||
|
sfxSlide.SetActive(false);
|
||||||
|
controlTypeSwitcher.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ChangeToGame()
|
public void ChangeToGame()
|
||||||
{
|
{
|
||||||
|
homeCamera.m_Lens.NearClipPlane = 0.3f;
|
||||||
|
|
||||||
homeGomb.SetActive(false);
|
homeGomb.SetActive(false);
|
||||||
settingsGomb.SetActive(false);
|
settingsGomb.SetActive(false);
|
||||||
shopGomb.SetActive(false);
|
shopGomb.SetActive(false);
|
||||||
playButton.SetActive(false);
|
playGomb.SetActive(false);
|
||||||
UpdateGameState(GameState.Game);
|
UpdateGameState(GameState.Game);
|
||||||
|
volumeSlide.SetActive(false);
|
||||||
|
musicSlide.SetActive(false);
|
||||||
|
sfxSlide.SetActive(false);
|
||||||
|
controlTypeSwitcher.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerator TimerGame()
|
IEnumerator TimerGame()
|
||||||
{
|
{
|
||||||
yield return new WaitForSecondsRealtime(1);
|
yield return new WaitForSecondsRealtime(1);
|
||||||
garazs.SetActive(false);
|
garazs.SetActive(false);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void HandleGame()
|
private async void HandleGame()
|
||||||
{
|
{
|
||||||
StartCoroutine(TimerGame());
|
StartCoroutine(TimerGame());
|
||||||
|
|
||||||
GetComponent <GroundController> ().enabled = true;
|
boby.transform.position = new Vector3(0, boby.transform.position.y, boby.transform.position.z);
|
||||||
GetComponent <PlayerController>().enabled = true;
|
|
||||||
|
GetComponent<GroundController> ().enabled = true;
|
||||||
|
GetComponent<PlayerController>().enabled = true;
|
||||||
|
|
||||||
|
|
||||||
goLeftButton.SetActive(true);
|
goLeftButton.SetActive(true);
|
||||||
jumpButton.SetActive(true);
|
jumpButton.SetActive(true);
|
||||||
goRightButton.SetActive(true);
|
goRightButton.SetActive(true);
|
||||||
scoreText.gameObject.SetActive(true);
|
scoreText.gameObject.SetActive(true);
|
||||||
timerText.gameObject.SetActive(true);
|
timerText.gameObject.SetActive(true);
|
||||||
playButton.SetActive(false);
|
|
||||||
|
|
||||||
timer.playTime.Start();
|
timer.playTime.Start();
|
||||||
}
|
}
|
||||||
@@ -200,12 +261,12 @@ public class jatekmanager : MonoBehaviour
|
|||||||
db.PostNewScoreData(usernameHandler.userid, score.score, timer.convertTimeToString());
|
db.PostNewScoreData(usernameHandler.userid, score.score, timer.convertTimeToString());
|
||||||
|
|
||||||
//coin feltoltes
|
//coin feltoltes
|
||||||
db.PostNewCoinData(cc.coin, usernameHandler.userid);
|
db.PostUpdateCoinData(cc.coin, usernameHandler.userid);
|
||||||
|
|
||||||
SceneUIManager.LoadScene(1); //HighScore scene
|
SceneUIManager.LoadScene(1); //HighScore scene
|
||||||
|
|
||||||
|
|
||||||
/*playButton.SetActive(false);
|
/*
|
||||||
homeGomb.SetActive(true);
|
homeGomb.SetActive(true);
|
||||||
GetComponent<GroundController>().enabled = false;
|
GetComponent<GroundController>().enabled = false;
|
||||||
GetComponent<PlayerController>().enabled = false;
|
GetComponent<PlayerController>().enabled = false;
|
||||||
|
|||||||
27
Assets/Scripts/portal.cs
Normal file
27
Assets/Scripts/portal.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class portal : MonoBehaviour
|
||||||
|
{
|
||||||
|
private GroundController gc;
|
||||||
|
private int random;
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
gc = FindObjectOfType<GroundController>();
|
||||||
|
|
||||||
|
random = UnityEngine.Random.Range(0, gc.materials.Length);
|
||||||
|
|
||||||
|
gameObject.GetComponent<MeshRenderer>().material = gc.materials[random];
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if(other.gameObject.tag.Equals("Player")){
|
||||||
|
gc.ChangeMaterial(gc.materials[random]);
|
||||||
|
//gc.ModuleColorChange();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
11
Assets/Scripts/portal.cs.meta
Normal file
11
Assets/Scripts/portal.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d60fcfdeb5dfdfd4a9f8ba42c2ee9d63
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -134,7 +134,7 @@ PlayerSettings:
|
|||||||
16:10: 1
|
16:10: 1
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 0.6
|
bundleVersion: 1.0
|
||||||
preloadedAssets: []
|
preloadedAssets: []
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
@@ -817,7 +817,7 @@ PlayerSettings:
|
|||||||
allowUnsafeCode: 0
|
allowUnsafeCode: 0
|
||||||
useDeterministicCompilation: 1
|
useDeterministicCompilation: 1
|
||||||
enableRoslynAnalyzers: 1
|
enableRoslynAnalyzers: 1
|
||||||
selectedPlatform: 2
|
selectedPlatform: 3
|
||||||
additionalIl2CppArgs:
|
additionalIl2CppArgs:
|
||||||
scriptingRuntimeVersion: 1
|
scriptingRuntimeVersion: 1
|
||||||
gcIncremental: 1
|
gcIncremental: 1
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user