Merge pull request #10 from playmaker1210/sideObjects
side object update, portal spawn rules
This commit was merged in pull request #10.
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b96955730a74a745b80bbb65782ca1f8
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
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.
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: fd275518d3aad0536b1b8b19df0306ad
|
guid: 5e814191f087bc54b9b4c463419d91a5
|
||||||
ModelImporter:
|
ModelImporter:
|
||||||
serializedVersion: 21300
|
serializedVersion: 21300
|
||||||
internalIDToNameTable: []
|
internalIDToNameTable: []
|
||||||
@@ -42,14 +42,14 @@ ModelImporter:
|
|||||||
sortHierarchyByName: 1
|
sortHierarchyByName: 1
|
||||||
importVisibility: 1
|
importVisibility: 1
|
||||||
importBlendShapes: 1
|
importBlendShapes: 1
|
||||||
importCameras: 1
|
importCameras: 0
|
||||||
importLights: 1
|
importLights: 0
|
||||||
nodeNameCollisionStrategy: 1
|
nodeNameCollisionStrategy: 1
|
||||||
fileIdsGeneration: 2
|
fileIdsGeneration: 2
|
||||||
swapUVChannels: 0
|
swapUVChannels: 0
|
||||||
generateSecondaryUV: 0
|
generateSecondaryUV: 0
|
||||||
useFileUnits: 1
|
useFileUnits: 1
|
||||||
keepQuads: 0
|
keepQuads: 1
|
||||||
weldVertices: 1
|
weldVertices: 1
|
||||||
bakeAxisConversion: 0
|
bakeAxisConversion: 0
|
||||||
preserveHierarchy: 0
|
preserveHierarchy: 0
|
||||||
@@ -66,7 +66,7 @@ ModelImporter:
|
|||||||
secondaryUVMinLightmapResolution: 40
|
secondaryUVMinLightmapResolution: 40
|
||||||
secondaryUVMinObjectScale: 1
|
secondaryUVMinObjectScale: 1
|
||||||
secondaryUVPackMargin: 4
|
secondaryUVPackMargin: 4
|
||||||
useFileScale: 1
|
useFileScale: 0
|
||||||
tangentSpace:
|
tangentSpace:
|
||||||
normalSmoothAngle: 60
|
normalSmoothAngle: 60
|
||||||
normalImportMode: 0
|
normalImportMode: 0
|
||||||
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: 345137c8b40553842bf05ead1dab812e
|
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:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1444,6 +1444,79 @@ MonoBehaviour:
|
|||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_LegacyBlendHint: 0
|
m_LegacyBlendHint: 0
|
||||||
m_ComponentOwner: {fileID: 838686756}
|
m_ComponentOwner: {fileID: 838686756}
|
||||||
|
--- !u!1001 &611445596
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 1455135685323931089, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: haz1tukor
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1554951571398515104, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_Enabled
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 15
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -9
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6266817390742658039, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 15
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6266817390742658039, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -11
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6266817390742658039, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: -9
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
--- !u!1 &644899047
|
--- !u!1 &644899047
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1738,6 +1811,79 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 645543792}
|
m_GameObject: {fileID: 645543792}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1001 &687902612
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 1455135685323931089, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: haz1tukor (1)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1554951571398515104, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_Enabled
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 16
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 9
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2268264582307538795, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6266817390742658039, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 16
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6266817390742658039, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -11
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6266817390742658039, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 9
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 5822b88e98887c34383505b33c58d6da, type: 3}
|
||||||
--- !u!1 &702512601
|
--- !u!1 &702512601
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -3280,6 +3426,9 @@ MonoBehaviour:
|
|||||||
- {fileID: 2100000, guid: cec427bc0abfad54ca8fe959fd2360cf, type: 2}
|
- {fileID: 2100000, guid: cec427bc0abfad54ca8fe959fd2360cf, type: 2}
|
||||||
materialIndex: 0
|
materialIndex: 0
|
||||||
groundMoveSpeed: 10
|
groundMoveSpeed: 10
|
||||||
|
portalModul: {fileID: 6679310150688957571, guid: 922c9d3ed72c7904e92daec040e7e8ff, type: 3}
|
||||||
|
groundCounter: 0
|
||||||
|
portalSpawnNumber: 15
|
||||||
--- !u!4 &1201779183
|
--- !u!4 &1201779183
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -3701,7 +3850,7 @@ Transform:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1513686735}
|
m_GameObject: {fileID: 1513686735}
|
||||||
m_LocalRotation: {x: 0.22590087, y: 0.0030496197, z: -0.000707196, w: 0.9741453}
|
m_LocalRotation: {x: 0.22590086, y: 0.0030496013, z: -0.0007071918, w: 0.9741453}
|
||||||
m_LocalPosition: {x: -0.28647116, y: 6.2664723, z: 2.6748314}
|
m_LocalPosition: {x: -0.28647116, y: 6.2664723, z: 2.6748314}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
@@ -4947,7 +5096,7 @@ Light:
|
|||||||
serializedVersion: 10
|
serializedVersion: 10
|
||||||
m_Type: 1
|
m_Type: 1
|
||||||
m_Shape: 0
|
m_Shape: 0
|
||||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
m_Color: {r: 1, g: 0.9759549, b: 0.9103774, a: 1}
|
||||||
m_Intensity: 1
|
m_Intensity: 1
|
||||||
m_Range: 10
|
m_Range: 10
|
||||||
m_SpotAngle: 30
|
m_SpotAngle: 30
|
||||||
@@ -4987,7 +5136,7 @@ Light:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Bits: 4294967295
|
m_Bits: 4294967295
|
||||||
m_RenderingLayerMask: 1
|
m_RenderingLayerMask: 1
|
||||||
m_Lightmapping: 2
|
m_Lightmapping: 4
|
||||||
m_LightShadowCasterMode: 0
|
m_LightShadowCasterMode: 0
|
||||||
m_AreaSize: {x: 1, y: 1}
|
m_AreaSize: {x: 1, y: 1}
|
||||||
m_BounceIntensity: 1
|
m_BounceIntensity: 1
|
||||||
@@ -5006,7 +5155,7 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1980041874}
|
m_GameObject: {fileID: 1980041874}
|
||||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
m_LocalPosition: {x: 21.7, y: 18.5, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ public class GroundController : MonoBehaviour
|
|||||||
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;
|
||||||
|
|
||||||
@@ -51,8 +55,7 @@ public class GroundController : MonoBehaviour
|
|||||||
OrderArrayByZ(sideObjectsSpawned);
|
OrderArrayByZ(sideObjectsSpawned);
|
||||||
|
|
||||||
for (int i = 0; i < ground.Length; i++)
|
for (int i = 0; i < ground.Length; i++)
|
||||||
{ //ground objecteket mozgatja
|
{ //ground objecteket mozgatja
|
||||||
//ground[i].transform.position = ground[i].transform.position + new Vector3(0,0, -groundMoveSpeed * Time.deltaTime);
|
|
||||||
Move(ground[i]);
|
Move(ground[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,26 +65,26 @@ public class GroundController : MonoBehaviour
|
|||||||
Move(sideObjectsSpawned[i]);
|
Move(sideObjectsSpawned[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sideObjectsSpawned[sideObjectsSpawned.Length - 1].transform.position.z < 145)
|
||||||
|
{
|
||||||
|
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)
|
||||||
{
|
{
|
||||||
CreateNewGround();
|
if(groundCounter == portalSpawnNumber){
|
||||||
|
CreateNewGround(true);
|
||||||
for (int k = 0; k < 3; k++)
|
groundCounter = 0; //ne menjen a vegtelensegig a counter
|
||||||
{
|
}else{
|
||||||
CreateNewSideObjects(false);
|
CreateNewGround();
|
||||||
CreateNewSideObjects(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ground = GameObject.FindGameObjectsWithTag("Ground");
|
ground = GameObject.FindGameObjectsWithTag("Ground");
|
||||||
|
|
||||||
for (int i = 0; i < ground.Length; i++)
|
for (int i = 0; i < ground.Length; i++)
|
||||||
{
|
{
|
||||||
/*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];
|
Transform[] lanes = new Transform[3];
|
||||||
lanes[0] = ground[i].transform.Find("Lane1");
|
lanes[0] = ground[i].transform.Find("Lane1");
|
||||||
lanes[1] = ground[i].transform.Find("Lane2");
|
lanes[1] = ground[i].transform.Find("Lane2");
|
||||||
@@ -94,13 +97,6 @@ public class GroundController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//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();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,41 +115,46 @@ public class GroundController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (item.transform.position.x < 0 && isLeftSide)
|
if (item.transform.position.x < 0 && isLeftSide)
|
||||||
{
|
{
|
||||||
side.Add(item); //ball oldal
|
side.Add(item); //bal oldal
|
||||||
}
|
}
|
||||||
else
|
else if (item.transform.position.x > 0 && !isLeftSide)
|
||||||
{
|
{
|
||||||
side.Add(item); //jobb oldal
|
side.Add(item); //jobb oldal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int random = UnityEngine.Random.Range(0, sideObjects.Length);
|
int random = UnityEngine.Random.Range(0, sideObjects.Length); //random sorsolasa a modulhoz
|
||||||
random = 0; //csak debug
|
//random = 0; //csak debug
|
||||||
|
|
||||||
GameObject inst = sideObjects[random];
|
GameObject inst = sideObjects[random]; //random modul object eltarolas
|
||||||
|
|
||||||
//remake to get width
|
//remake to get width
|
||||||
Vector3 offset = new Vector3(0, 0, 10f);
|
Vector3 offset = new Vector3(0, 0, 0);
|
||||||
|
|
||||||
if (sideObjectsSpawned.Length > 0)
|
if (side.Count > 0)
|
||||||
{
|
{
|
||||||
if (sideObjectsSpawned[sideObjectsSpawned.Length - 1].gameObject.name.Contains("haz1")) //haz1Clone
|
if (side[side.Count - 1].gameObject.name.Contains("haz1")) //haz1Clone
|
||||||
offset = new Vector3(0, 0, 10f); //TODO adjust
|
offset = new Vector3(0, 0, 15f); //TODO adjust
|
||||||
else if (sideObjectsSpawned[sideObjectsSpawned.Length - 1].gameObject.name.Contains("haz2"))
|
else if (side[side.Count - 1].gameObject.name.Contains("haz2"))
|
||||||
offset = new Vector3(0, 0, 20f); //TODO adjust
|
offset = new Vector3(0, 0, 20f); //TODO adjust
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
||||||
Vector3 pos = new Vector3(9f, 0, 0);
|
Vector3 pos = new Vector3(9f, -5f, -10f);
|
||||||
|
Quaternion rotation = inst.transform.rotation;
|
||||||
|
|
||||||
if (sideObjectsSpawned.Length > 0)
|
if (side.Count > 0)
|
||||||
pos = sideObjectsSpawned[sideObjectsSpawned.Length - 1].transform.position + offset;
|
//pos = sideObjectsSpawned[sideObjectsSpawned.Length - 1].transform.position + offset;
|
||||||
|
pos = side[side.Count - 1].transform.position + offset;
|
||||||
else
|
else
|
||||||
pos = pos + offset;
|
pos = pos + offset;
|
||||||
|
|
||||||
if (isLeftSide) pos.x = -pos.x;
|
|
||||||
|
|
||||||
Instantiate(inst, pos, inst.transform.rotation);
|
if (isLeftSide && pos.x > 0) //x negativ hogy a bal oldalra keruljon
|
||||||
|
pos.x = -pos.x;
|
||||||
|
|
||||||
|
|
||||||
|
Instantiate(inst, pos, rotation);
|
||||||
|
|
||||||
sideObjectsSpawned = GameObject.FindGameObjectsWithTag("SideObject");
|
sideObjectsSpawned = GameObject.FindGameObjectsWithTag("SideObject");
|
||||||
OrderArrayByZ(sideObjectsSpawned);
|
OrderArrayByZ(sideObjectsSpawned);
|
||||||
@@ -164,10 +165,11 @@ public class GroundController : MonoBehaviour
|
|||||||
int materialteszt;
|
int materialteszt;
|
||||||
bool teszteljtovabb = true;
|
bool teszteljtovabb = true;
|
||||||
|
|
||||||
while (teszteljtovabb == true)
|
while (teszteljtovabb)
|
||||||
{
|
{
|
||||||
materialteszt = UnityEngine.Random.Range(0, materials.Length);
|
materialteszt = UnityEngine.Random.Range(0, materials.Length);
|
||||||
Debug.Log(materialteszt);
|
Debug.Log(materialteszt);
|
||||||
|
|
||||||
if (materialteszt == materialIndex)
|
if (materialteszt == materialIndex)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -211,10 +213,20 @@ public class GroundController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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(0, 0, ground[ground.Length - 1].transform.position.z + 40), ground[ground.Length - 1].transform.rotation);
|
||||||
|
groundCounter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,12 +13,9 @@ 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;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ public class portal : MonoBehaviour
|
|||||||
|
|
||||||
private void OnTriggerEnter(Collider other)
|
private void OnTriggerEnter(Collider other)
|
||||||
{
|
{
|
||||||
gc.changeMaterialIndex();
|
if(other.gameObject.tag.Equals("Player")){
|
||||||
|
gc.changeMaterialIndex();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user