Compare commits
2 Commits
bc26de77b0
...
4b374c6805
Author | SHA1 | Date | |
---|---|---|---|
|
4b374c6805 | ||
|
7e3cc6ead6 |
163
Assets/Prefabs/Ladder.prefab
Normal file
163
Assets/Prefabs/Ladder.prefab
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &8000970721633820985
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8000970721633820988}
|
||||||
|
- component: {fileID: 8000970721633820987}
|
||||||
|
- component: {fileID: 8000970721633820986}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Ladder
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8000970721633820988
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8000970721633820985}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -1.908, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 7531022465049058937}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &8000970721633820987
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8000970721633820985}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: c7be605e9d134b742b0269485b577d6a, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
objectType: 3
|
||||||
|
detailSign: {fileID: 0}
|
||||||
|
MovePoints: []
|
||||||
|
--- !u!65 &8000970721633820986
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8000970721633820985}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 1, y: 4, z: 1}
|
||||||
|
m_Center: {x: 0, y: 2, z: 0}
|
||||||
|
--- !u!1001 &8000970719968180626
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8000970721633820988}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0.4
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: -180
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.size
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[1]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: 49025a60961b95a43986697748175308, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Ladder
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 6b7c63dcf00c14d4f8d50746541ddaec, type: 3}
|
||||||
|
--- !u!4 &7531022465049058937 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 6b7c63dcf00c14d4f8d50746541ddaec,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 8000970719968180626}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
7
Assets/Prefabs/Ladder.prefab.meta
Normal file
7
Assets/Prefabs/Ladder.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f1921397dd03b054c87b4ce2e3d72adc
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -736,11 +736,13 @@ MonoBehaviour:
|
|||||||
health: 100
|
health: 100
|
||||||
actualHealth: 100
|
actualHealth: 100
|
||||||
onGround: 1
|
onGround: 1
|
||||||
|
onLadder: 0
|
||||||
activeAbility: 00000000
|
activeAbility: 00000000
|
||||||
PowerPrefabs:
|
PowerPrefabs:
|
||||||
- {fileID: 200189416050843931, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b, type: 3}
|
- {fileID: 200189416050843931, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b, type: 3}
|
||||||
- {fileID: 2644881069278570743, guid: 94642d7ef8c97e544af1d5ca3596a37f, type: 3}
|
- {fileID: 2644881069278570743, guid: 94642d7ef8c97e544af1d5ca3596a37f, type: 3}
|
||||||
- {fileID: 7945524436670112111, guid: 2d077f1b027540045b6833e51a067855, type: 3}
|
- {fileID: 7945524436670112111, guid: 2d077f1b027540045b6833e51a067855, type: 3}
|
||||||
|
- {fileID: 7411583397803452420, guid: d42abe5652faa4543b100c9bf55091a7, type: 3}
|
||||||
dashPower: 40
|
dashPower: 40
|
||||||
dashTime: 0.2
|
dashTime: 0.2
|
||||||
--- !u!95 &7009705026125325791
|
--- !u!95 &7009705026125325791
|
||||||
|
164
Assets/Prefabs/PowerLadder.prefab
Normal file
164
Assets/Prefabs/PowerLadder.prefab
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &7411583397803452420
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2199064835177506788}
|
||||||
|
- component: {fileID: 5464565265953175567}
|
||||||
|
- component: {fileID: 7214839183656753460}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: PowerLadder
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &2199064835177506788
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7411583397803452420}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -10.03, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 6493111389015250895}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &5464565265953175567
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7411583397803452420}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 08fe7369accc1464499b2f2a75559298, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
powerType: 8
|
||||||
|
powerTime: 0
|
||||||
|
powerUnit: 0
|
||||||
|
nextSceneName:
|
||||||
|
--- !u!65 &7214839183656753460
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7411583397803452420}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 1, y: 0.55, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0.4, z: 0}
|
||||||
|
--- !u!1001 &6743739212516913188
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 2199064835177506788}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 0.1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 0.1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 0.1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0.4
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7635826562936255635, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.size
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7635826562936255635, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[1]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: 49025a60961b95a43986697748175308, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: SkillCube
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: a2c33b905bb71c74aacdeca187b58abf, type: 3}
|
||||||
|
--- !u!4 &6493111389015250895 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: a2c33b905bb71c74aacdeca187b58abf,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 6743739212516913188}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
7
Assets/Prefabs/PowerLadder.prefab.meta
Normal file
7
Assets/Prefabs/PowerLadder.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d42abe5652faa4543b100c9bf55091a7
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -141,7 +141,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 9203772316689128559, guid: a81c7869040fbef4f8d5acf2c1499c42,
|
- target: {fileID: 9203772316689128559, guid: a81c7869040fbef4f8d5acf2c1499c42,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 3
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9203772316689128559, guid: a81c7869040fbef4f8d5acf2c1499c42,
|
- target: {fileID: 9203772316689128559, guid: a81c7869040fbef4f8d5acf2c1499c42,
|
||||||
type: 3}
|
type: 3}
|
||||||
@ -195,6 +195,75 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: a81c7869040fbef4f8d5acf2c1499c42, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: a81c7869040fbef4f8d5acf2c1499c42, type: 3}
|
||||||
|
--- !u!1001 &157925291
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8000970721633820985, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Ladder (1)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 13
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -5.13
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: f1921397dd03b054c87b4ce2e3d72adc, type: 3}
|
||||||
--- !u!1 &253619331
|
--- !u!1 &253619331
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -308,7 +377,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 7
|
value: 5
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
||||||
type: 3}
|
type: 3}
|
||||||
@ -362,75 +431,6 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 597897b562955934fae65d62e0a8e3cd, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 597897b562955934fae65d62e0a8e3cd, type: 3}
|
||||||
--- !u!1001 &488560107
|
|
||||||
PrefabInstance:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Modification:
|
|
||||||
m_TransformParent: {fileID: 0}
|
|
||||||
m_Modifications:
|
|
||||||
- target: {fileID: 2445808756126767684, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Name
|
|
||||||
value: HideSpikes
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_RootOrder
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.x
|
|
||||||
value: 1.3399206
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: 0.055500984
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4248534433455483926, guid: 474f8c28a83eb5f428704b0e53c4e039,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 474f8c28a83eb5f428704b0e53c4e039, type: 3}
|
|
||||||
--- !u!1001 &515298013
|
--- !u!1001 &515298013
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -441,7 +441,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 8810309419999466072, guid: 75a5dff38607d264bbf318173d359a5e,
|
- target: {fileID: 8810309419999466072, guid: 75a5dff38607d264bbf318173d359a5e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 2
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8810309419999466072, guid: 75a5dff38607d264bbf318173d359a5e,
|
- target: {fileID: 8810309419999466072, guid: 75a5dff38607d264bbf318173d359a5e,
|
||||||
type: 3}
|
type: 3}
|
||||||
@ -500,86 +500,36 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 75a5dff38607d264bbf318173d359a5e, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 75a5dff38607d264bbf318173d359a5e, type: 3}
|
||||||
--- !u!1001 &822020710
|
--- !u!1 &594617475
|
||||||
PrefabInstance:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Modification:
|
|
||||||
m_TransformParent: {fileID: 0}
|
|
||||||
m_Modifications:
|
|
||||||
- target: {fileID: 7120608647080996497, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Name
|
|
||||||
value: PushPullCube (1)
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996502, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Mass
|
|
||||||
value: 200
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_RootOrder
|
|
||||||
value: 8
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.x
|
|
||||||
value: -4.52
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.y
|
|
||||||
value: 0.76
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7120608647080996506, guid: 597897b562955934fae65d62e0a8e3cd,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 597897b562955934fae65d62e0a8e3cd, type: 3}
|
|
||||||
--- !u!1 &952701062 stripped
|
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 5921576287932412887, guid: e4d82994b58b7304b91c915c597b71f8,
|
m_ObjectHideFlags: 0
|
||||||
type: 3}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 6840056971477016067}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 594617476}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: GameObject
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &594617476
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 594617475}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -1.5253737, y: 2.142317, z: -0.89260405}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 12
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &964739489
|
--- !u!1 &964739489
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -670,77 +620,101 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 11
|
m_RootOrder: 8
|
||||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||||
--- !u!1001 &1158902025
|
--- !u!1 &1663971021
|
||||||
PrefabInstance:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1663971025}
|
||||||
|
- component: {fileID: 1663971024}
|
||||||
|
- component: {fileID: 1663971023}
|
||||||
|
- component: {fileID: 1663971022}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Cube
|
||||||
|
m_TagString: Ground
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!65 &1663971022
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1663971021}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Modification:
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
m_TransformParent: {fileID: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
m_Modifications:
|
--- !u!23 &1663971023
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
MeshRenderer:
|
||||||
type: 3}
|
m_ObjectHideFlags: 0
|
||||||
propertyPath: m_RootOrder
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
value: 4
|
m_PrefabInstance: {fileID: 0}
|
||||||
objectReference: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_GameObject: {fileID: 1663971021}
|
||||||
type: 3}
|
m_Enabled: 1
|
||||||
propertyPath: m_LocalPosition.x
|
m_CastShadows: 1
|
||||||
value: 3.813418
|
m_ReceiveShadows: 1
|
||||||
objectReference: {fileID: 0}
|
m_DynamicOccludee: 1
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_MotionVectors: 1
|
||||||
type: 3}
|
m_LightProbeUsage: 1
|
||||||
propertyPath: m_LocalPosition.y
|
m_ReflectionProbeUsage: 1
|
||||||
value: 2.95
|
m_RayTracingMode: 2
|
||||||
objectReference: {fileID: 0}
|
m_RenderingLayerMask: 1
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_RendererPriority: 0
|
||||||
type: 3}
|
m_Materials:
|
||||||
propertyPath: m_LocalPosition.z
|
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
value: 0
|
m_StaticBatchInfo:
|
||||||
objectReference: {fileID: 0}
|
firstSubMesh: 0
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
subMeshCount: 0
|
||||||
type: 3}
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
propertyPath: m_LocalRotation.w
|
m_ProbeAnchor: {fileID: 0}
|
||||||
value: 1
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
objectReference: {fileID: 0}
|
m_ScaleInLightmap: 1
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_ReceiveGI: 1
|
||||||
type: 3}
|
m_PreserveUVs: 0
|
||||||
propertyPath: m_LocalRotation.x
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
value: 0
|
m_ImportantGI: 0
|
||||||
objectReference: {fileID: 0}
|
m_StitchLightmapSeams: 1
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_SelectedEditorRenderState: 3
|
||||||
type: 3}
|
m_MinimumChartSize: 4
|
||||||
propertyPath: m_LocalRotation.y
|
m_AutoUVMaxDistance: 0.5
|
||||||
value: 0
|
m_AutoUVMaxAngle: 89
|
||||||
objectReference: {fileID: 0}
|
m_LightmapParameters: {fileID: 0}
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_SortingLayerID: 0
|
||||||
type: 3}
|
m_SortingLayer: 0
|
||||||
propertyPath: m_LocalRotation.z
|
m_SortingOrder: 0
|
||||||
value: 0
|
--- !u!33 &1663971024
|
||||||
objectReference: {fileID: 0}
|
MeshFilter:
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_ObjectHideFlags: 0
|
||||||
type: 3}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
m_PrefabInstance: {fileID: 0}
|
||||||
value: 0
|
m_PrefabAsset: {fileID: 0}
|
||||||
objectReference: {fileID: 0}
|
m_GameObject: {fileID: 1663971021}
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
type: 3}
|
--- !u!4 &1663971025
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
Transform:
|
||||||
value: 0
|
m_ObjectHideFlags: 0
|
||||||
objectReference: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
- target: {fileID: 8224448297729827164, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_PrefabInstance: {fileID: 0}
|
||||||
type: 3}
|
m_PrefabAsset: {fileID: 0}
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
m_GameObject: {fileID: 1663971021}
|
||||||
value: 0
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
objectReference: {fileID: 0}
|
m_LocalPosition: {x: -3.51, y: 1.5, z: 0}
|
||||||
- target: {fileID: 8224448297729827165, guid: 08d7423eab725344da0bad3b29f907dd,
|
m_LocalScale: {x: 2, y: 3, z: 2}
|
||||||
type: 3}
|
m_Children: []
|
||||||
propertyPath: m_Name
|
m_Father: {fileID: 0}
|
||||||
value: SawRiding
|
m_RootOrder: 11
|
||||||
objectReference: {fileID: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_RemovedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 08d7423eab725344da0bad3b29f907dd, type: 3}
|
|
||||||
--- !u!1001 &2549885454013026912
|
--- !u!1001 &2549885454013026912
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -751,7 +725,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 1593063039033634447, guid: 2d077f1b027540045b6833e51a067855,
|
- target: {fileID: 1593063039033634447, guid: 2d077f1b027540045b6833e51a067855,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 12
|
value: 9
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 1593063039033634447, guid: 2d077f1b027540045b6833e51a067855,
|
- target: {fileID: 1593063039033634447, guid: 2d077f1b027540045b6833e51a067855,
|
||||||
type: 3}
|
type: 3}
|
||||||
@ -825,12 +799,12 @@ PrefabInstance:
|
|||||||
- target: {fileID: 8833996703784759035, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b,
|
- target: {fileID: 8833996703784759035, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 9
|
value: 6
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8833996703784759035, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b,
|
- target: {fileID: 8833996703784759035, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: 2.58
|
value: 11.01
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8833996703784759035, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b,
|
- target: {fileID: 8833996703784759035, guid: 3ddcad8db762bdf41b5b49fff6fb6a3b,
|
||||||
type: 3}
|
type: 3}
|
||||||
@ -894,12 +868,12 @@ PrefabInstance:
|
|||||||
- target: {fileID: 6695479724104099607, guid: 94642d7ef8c97e544af1d5ca3596a37f,
|
- target: {fileID: 6695479724104099607, guid: 94642d7ef8c97e544af1d5ca3596a37f,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 10
|
value: 7
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6695479724104099607, guid: 94642d7ef8c97e544af1d5ca3596a37f,
|
- target: {fileID: 6695479724104099607, guid: 94642d7ef8c97e544af1d5ca3596a37f,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: -2.302
|
value: -10.03
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6695479724104099607, guid: 94642d7ef8c97e544af1d5ca3596a37f,
|
- target: {fileID: 6695479724104099607, guid: 94642d7ef8c97e544af1d5ca3596a37f,
|
||||||
type: 3}
|
type: 3}
|
||||||
@ -948,80 +922,75 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 94642d7ef8c97e544af1d5ca3596a37f, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 94642d7ef8c97e544af1d5ca3596a37f, type: 3}
|
||||||
--- !u!1001 &5732701482027561366
|
--- !u!1001 &5075004910662975950
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Modification:
|
m_Modification:
|
||||||
m_TransformParent: {fileID: 0}
|
m_TransformParent: {fileID: 0}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
- target: {fileID: 4850319959489979102, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Name
|
|
||||||
value: Sign
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 13
|
value: 14
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: 1.299
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0.913
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.w
|
propertyPath: m_LocalRotation.w
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.x
|
propertyPath: m_LocalRotation.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.y
|
propertyPath: m_LocalRotation.y
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.z
|
propertyPath: m_LocalRotation.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5189304429820737636, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 2199064835177506788, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5732701482242678669, guid: c6f393d12d7dd6b43a2ec2840cb89b97,
|
- target: {fileID: 7411583397803452420, guid: d42abe5652faa4543b100c9bf55091a7,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: detailSign
|
propertyPath: m_Name
|
||||||
value:
|
value: PowerLadder
|
||||||
objectReference: {fileID: 952701062}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: c6f393d12d7dd6b43a2ec2840cb89b97, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: d42abe5652faa4543b100c9bf55091a7, type: 3}
|
||||||
--- !u!1001 &6840056971477016067
|
--- !u!1001 &6840056971477016067
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1037,7 +1006,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 7094923891560833917, guid: e4d82994b58b7304b91c915c597b71f8,
|
- target: {fileID: 7094923891560833917, guid: e4d82994b58b7304b91c915c597b71f8,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 5
|
value: 3
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 7094923891560833917, guid: e4d82994b58b7304b91c915c597b71f8,
|
- target: {fileID: 7094923891560833917, guid: e4d82994b58b7304b91c915c597b71f8,
|
||||||
type: 3}
|
type: 3}
|
||||||
@ -1089,13 +1058,77 @@ PrefabInstance:
|
|||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 7094923891560833918, guid: e4d82994b58b7304b91c915c597b71f8,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Drag
|
|
||||||
value: 0.05
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: e4d82994b58b7304b91c915c597b71f8, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: e4d82994b58b7304b91c915c597b71f8, type: 3}
|
||||||
|
--- !u!1001 &8000970720691840184
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8000970721633820985, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Ladder
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -1.908
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8000970721633820988, guid: f1921397dd03b054c87b4ce2e3d72adc,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: f1921397dd03b054c87b4ce2e3d72adc, type: 3}
|
||||||
--- !u!1001 &8125994354024151814
|
--- !u!1001 &8125994354024151814
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1106,7 +1139,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 8125994354137083922, guid: 0d7691d0b9091aa4dba16f262d8daf1b,
|
- target: {fileID: 8125994354137083922, guid: 0d7691d0b9091aa4dba16f262d8daf1b,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 6
|
value: 4
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8125994354137083922, guid: 0d7691d0b9091aa4dba16f262d8daf1b,
|
- target: {fileID: 8125994354137083922, guid: 0d7691d0b9091aa4dba16f262d8daf1b,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
@ -5,13 +5,14 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
public class ObjectManager : MonoBehaviour
|
public class ObjectManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
public enum ObjectType {Nothing, PushPull, Sign};
|
public enum ObjectType {Nothing, PushPull, Sign, Ladder};
|
||||||
public ObjectType objectType = ObjectType.Nothing;
|
public ObjectType objectType = ObjectType.Nothing;
|
||||||
private Rigidbody rigidBody;
|
private Rigidbody rigidBody;
|
||||||
private MeshRenderer meshRenderer;
|
private MeshRenderer meshRenderer;
|
||||||
private PlayerManager playerManager;
|
private PlayerManager playerManager;
|
||||||
private bool interact = false;
|
private bool interact = false;
|
||||||
public GameObject detailSign;
|
public GameObject detailSign;
|
||||||
|
public List<Transform> MovePoints = new List<Transform>();
|
||||||
|
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
@ -26,6 +27,10 @@ public class ObjectManager : MonoBehaviour
|
|||||||
meshRenderer = meshR[1];
|
meshRenderer = meshR[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (objectType == ObjectType.Ladder)
|
||||||
|
{
|
||||||
|
meshRenderer = GetComponentInChildren<MeshRenderer>();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
meshRenderer = GetComponent<MeshRenderer>();
|
meshRenderer = GetComponent<MeshRenderer>();
|
||||||
@ -67,7 +72,6 @@ public class ObjectManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
detailSign.SetActive(false);
|
detailSign.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -76,12 +80,15 @@ public class ObjectManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
meshRenderer.materials[1].SetColor("_OutlineColor", new Color(0.5276349f, 0.5566038f, 0.118147f));
|
meshRenderer.materials[1].SetColor("_OutlineColor", new Color(0.5276349f, 0.5566038f, 0.118147f));
|
||||||
}
|
}
|
||||||
if (Input.GetKeyUp(KeyCode.E))
|
if (objectType == ObjectType.PushPull)
|
||||||
{
|
{
|
||||||
if (playerManager != null)
|
if (Input.GetKeyUp(KeyCode.E))
|
||||||
{
|
{
|
||||||
playerManager.RemovePushPullObject();
|
if (playerManager != null)
|
||||||
playerManager = null;
|
{
|
||||||
|
playerManager.RemovePushPullObject();
|
||||||
|
playerManager = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -97,6 +104,16 @@ public class ObjectManager : MonoBehaviour
|
|||||||
meshRenderer.materials[1].SetFloat("_Outline", 2.5f);
|
meshRenderer.materials[1].SetFloat("_Outline", 2.5f);
|
||||||
interact = true;
|
interact = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (objectType == ObjectType.Ladder)
|
||||||
|
{
|
||||||
|
playerManager = other.gameObject.GetComponent<PlayerManager>();
|
||||||
|
playerManager.onLadder = true;
|
||||||
|
if (playerManager.activeAbility.Count > 0 && playerManager.activeAbility[0] == 4) {
|
||||||
|
playerManager.GetComponent<Rigidbody>().useGravity = false;
|
||||||
|
}
|
||||||
|
interact = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +121,14 @@ public class ObjectManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (other.gameObject.tag == "Player")
|
if (other.gameObject.tag == "Player")
|
||||||
{
|
{
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 0.0f);
|
if (objectType == ObjectType.Ladder)
|
||||||
|
{
|
||||||
|
playerManager.onLadder = false;
|
||||||
|
playerManager.GetComponent<Rigidbody>().useGravity = true;
|
||||||
|
}
|
||||||
|
if (meshRenderer != null) {
|
||||||
|
meshRenderer.materials[1].SetFloat("_Outline", 0.0f);
|
||||||
|
}
|
||||||
interact = false;
|
interact = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,14 +13,15 @@ public class PlayerManager : MonoBehaviour
|
|||||||
public float actualHealth;
|
public float actualHealth;
|
||||||
private float[] actualPowerTimes = new float[] { 0f, 0f, 0f };
|
private float[] actualPowerTimes = new float[] { 0f, 0f, 0f };
|
||||||
public bool onGround = true;
|
public bool onGround = true;
|
||||||
|
public bool onLadder = false;
|
||||||
private bool run = false;
|
private bool run = false;
|
||||||
private Animator playerAnimator;
|
private Animator playerAnimator;
|
||||||
private Rigidbody rigidBody;
|
private Rigidbody rigidBody;
|
||||||
private PowerCubeManager powerCubeManager;
|
private PowerCubeManager powerCubeManager;
|
||||||
private bool interact = false;
|
private bool interact = false;
|
||||||
|
|
||||||
public List<int> activeAbility = new List<int>(); //without ability=0 or null, dubleJump = 1, push/pull = 2, dash = 3
|
public List<int> activeAbility = new List<int>(); //without ability=0 or null, dubleJump = 1, push/pull = 2, dash = 3, ladder = 4
|
||||||
public List<GameObject> PowerPrefabs = new List<GameObject>(); //dubleJump = 0, push/pull = 1, dash = 2
|
public List<GameObject> PowerPrefabs = new List<GameObject>(); //dubleJump = 0, push/pull = 1, dash = 2, ladder = 3
|
||||||
private bool dubleJump = true;
|
private bool dubleJump = true;
|
||||||
private GameObject pushPullObject;
|
private GameObject pushPullObject;
|
||||||
public float dashPower = 40f;
|
public float dashPower = 40f;
|
||||||
@ -70,7 +71,8 @@ public class PlayerManager : MonoBehaviour
|
|||||||
powerCubeManager.powerType == PowerCubeManager.PowerType.Artefact ||
|
powerCubeManager.powerType == PowerCubeManager.PowerType.Artefact ||
|
||||||
powerCubeManager.powerType == PowerCubeManager.PowerType.DubleJump ||
|
powerCubeManager.powerType == PowerCubeManager.PowerType.DubleJump ||
|
||||||
powerCubeManager.powerType == PowerCubeManager.PowerType.PushPull ||
|
powerCubeManager.powerType == PowerCubeManager.PowerType.PushPull ||
|
||||||
powerCubeManager.powerType == PowerCubeManager.PowerType.Dash
|
powerCubeManager.powerType == PowerCubeManager.PowerType.Dash ||
|
||||||
|
powerCubeManager.powerType == PowerCubeManager.PowerType.Ladder
|
||||||
)) {
|
)) {
|
||||||
if (Input.GetKeyUp(KeyCode.E))
|
if (Input.GetKeyUp(KeyCode.E))
|
||||||
{
|
{
|
||||||
@ -118,7 +120,8 @@ public class PlayerManager : MonoBehaviour
|
|||||||
}
|
}
|
||||||
else if (activeAbility.Count > 0 && activeAbility[0] == 3)
|
else if (activeAbility.Count > 0 && activeAbility[0] == 3)
|
||||||
{
|
{
|
||||||
if (Input.GetKeyUp(KeyCode.D) || Input.GetKeyUp(KeyCode.A) && !dash) {
|
if (Input.GetKeyUp(KeyCode.D) || Input.GetKeyUp(KeyCode.A) && !dash)
|
||||||
|
{
|
||||||
if (actualDashTime < Time.time)
|
if (actualDashTime < Time.time)
|
||||||
{
|
{
|
||||||
if (Input.GetKeyUp(KeyCode.D))
|
if (Input.GetKeyUp(KeyCode.D))
|
||||||
@ -133,7 +136,8 @@ public class PlayerManager : MonoBehaviour
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (dashButton == 1 && Input.GetKeyUp(KeyCode.D)) {
|
if (dashButton == 1 && Input.GetKeyUp(KeyCode.D))
|
||||||
|
{
|
||||||
rigidBody.AddForce(
|
rigidBody.AddForce(
|
||||||
(transform.right * dashPower * 10 * 5 * 1 * Time.deltaTime) +
|
(transform.right * dashPower * 10 * 5 * 1 * Time.deltaTime) +
|
||||||
(transform.up * 1 * 10 * Time.deltaTime),
|
(transform.up * 1 * 10 * Time.deltaTime),
|
||||||
@ -142,7 +146,7 @@ public class PlayerManager : MonoBehaviour
|
|||||||
dash = true;
|
dash = true;
|
||||||
dashButton = 0;
|
dashButton = 0;
|
||||||
actualDashTime = Time.time - 1f;
|
actualDashTime = Time.time - 1f;
|
||||||
}
|
}
|
||||||
else if (dashButton == 2 && Input.GetKeyUp(KeyCode.A))
|
else if (dashButton == 2 && Input.GetKeyUp(KeyCode.A))
|
||||||
{
|
{
|
||||||
rigidBody.AddForce(
|
rigidBody.AddForce(
|
||||||
@ -227,11 +231,12 @@ public class PlayerManager : MonoBehaviour
|
|||||||
|
|
||||||
void Move()
|
void Move()
|
||||||
{
|
{
|
||||||
if (onGround) {
|
if (onGround || (onLadder && activeAbility.Count > 0 && activeAbility[0] == 4)) {
|
||||||
rigidBody.MovePosition(
|
rigidBody.MovePosition(
|
||||||
transform.position +
|
transform.position +
|
||||||
|
(onLadder && activeAbility.Count > 0 && activeAbility[0] == 4 ? (transform.up * speed * Input.GetAxis("Vertical") * Time.deltaTime) : Vector3.zero) +
|
||||||
(transform.right * (run ? runSpeed : speed) * Input.GetAxis("Horizontal") * Time.deltaTime)
|
(transform.right * (run ? runSpeed : speed) * Input.GetAxis("Horizontal") * Time.deltaTime)
|
||||||
);
|
);;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,6 +292,12 @@ public class PlayerManager : MonoBehaviour
|
|||||||
//dash
|
//dash
|
||||||
activeAbility[0] = 3;
|
activeAbility[0] = 3;
|
||||||
}
|
}
|
||||||
|
else if ((powerType.GetHashCode() - 1) == 7)
|
||||||
|
{
|
||||||
|
DropPower();
|
||||||
|
//ladder
|
||||||
|
activeAbility[0] = 4;
|
||||||
|
}
|
||||||
else if (actualPowerTimes.Length <= (powerType.GetHashCode()) || actualPowerTimes[powerType.GetHashCode() - 1] < Time.time)
|
else if (actualPowerTimes.Length <= (powerType.GetHashCode()) || actualPowerTimes[powerType.GetHashCode() - 1] < Time.time)
|
||||||
{
|
{
|
||||||
actualPowerTimes[powerType.GetHashCode() - 1] = Time.time + powerTime;
|
actualPowerTimes[powerType.GetHashCode() - 1] = Time.time + powerTime;
|
||||||
@ -370,14 +381,25 @@ public class PlayerManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (other.tag == "Ground" || other.tag == "Objects")
|
if (other.tag == "Ground" || other.tag == "Objects")
|
||||||
{
|
{
|
||||||
rigidBody.AddForce(
|
if (!onLadder) {
|
||||||
(transform.right * (run ? runSpeed : speed) * 5 * Input.GetAxis("Horizontal") * Time.deltaTime) +
|
rigidBody.AddForce(
|
||||||
(transform.up * 10 * Time.deltaTime),
|
(transform.right * (run ? runSpeed : speed) * 5 * Input.GetAxis("Horizontal") * Time.deltaTime) +
|
||||||
ForceMode.VelocityChange
|
(transform.up * 10 * Time.deltaTime),
|
||||||
);
|
ForceMode.VelocityChange
|
||||||
|
);
|
||||||
|
}
|
||||||
onGround = false;
|
onGround = false;
|
||||||
dash = false;
|
dash = false;
|
||||||
}
|
}
|
||||||
|
if (other.gameObject.GetComponent<ObjectManager>() != null)
|
||||||
|
{
|
||||||
|
if (other.gameObject.GetComponent<ObjectManager>().objectType == ObjectManager.ObjectType.Ladder) {
|
||||||
|
rigidBody.AddForce(
|
||||||
|
(transform.right * (run ? runSpeed : speed) * 2.5f * Input.GetAxis("Horizontal") * Time.deltaTime),
|
||||||
|
ForceMode.VelocityChange
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (other.gameObject.GetComponent<PowerCubeManager>() != null)
|
if (other.gameObject.GetComponent<PowerCubeManager>() != null)
|
||||||
{
|
{
|
||||||
interact = false;
|
interact = false;
|
||||||
|
@ -5,7 +5,7 @@ using UnityEngine.SceneManagement;
|
|||||||
|
|
||||||
public class PowerCubeManager : MonoBehaviour
|
public class PowerCubeManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
public enum PowerType {Nothing, Bigger, Faster, Jumper, Artefact, DubleJump, PushPull, Dash};
|
public enum PowerType {Nothing, Bigger, Faster, Jumper, Artefact, DubleJump, PushPull, Dash, Ladder};
|
||||||
public PowerType powerType = PowerType.Nothing;
|
public PowerType powerType = PowerType.Nothing;
|
||||||
public float powerTime = 5f;
|
public float powerTime = 5f;
|
||||||
public float powerUnit = 10f;
|
public float powerUnit = 10f;
|
||||||
@ -26,6 +26,10 @@ public class PowerCubeManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
GetComponentInChildren<MeshRenderer>().material.color = Color.white;
|
GetComponentInChildren<MeshRenderer>().material.color = Color.white;
|
||||||
}
|
}
|
||||||
|
if (powerType == PowerType.Ladder)
|
||||||
|
{
|
||||||
|
GetComponentInChildren<MeshRenderer>().material.color = Color.black;
|
||||||
|
}
|
||||||
if (powerType == PowerType.Bigger) {
|
if (powerType == PowerType.Bigger) {
|
||||||
GetComponentInChildren<MeshRenderer>().material.color = Color.blue;
|
GetComponentInChildren<MeshRenderer>().material.color = Color.blue;
|
||||||
}
|
}
|
||||||
@ -37,7 +41,7 @@ public class PowerCubeManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
GetComponentInChildren<MeshRenderer>().material.color = Color.green;
|
GetComponentInChildren<MeshRenderer>().material.color = Color.green;
|
||||||
}
|
}
|
||||||
else if (powerType == PowerType.Artefact || powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash)
|
else if (powerType == PowerType.Artefact || powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash || powerType == PowerType.Ladder)
|
||||||
{
|
{
|
||||||
meshRenderer = GetComponentInChildren<MeshRenderer>();
|
meshRenderer = GetComponentInChildren<MeshRenderer>();
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 0.0f);
|
meshRenderer.materials[1].SetFloat("_Outline", 0.0f);
|
||||||
@ -59,7 +63,7 @@ public class PowerCubeManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 0.4f);
|
meshRenderer.materials[1].SetFloat("_Outline", 0.4f);
|
||||||
}
|
}
|
||||||
else if (powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash)
|
else if (powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash || powerType == PowerType.Ladder)
|
||||||
{
|
{
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 0.01f);
|
meshRenderer.materials[1].SetFloat("_Outline", 0.01f);
|
||||||
}
|
}
|
||||||
@ -69,7 +73,7 @@ public class PowerCubeManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (other.gameObject.tag == "Player")
|
if (other.gameObject.tag == "Player")
|
||||||
{
|
{
|
||||||
if (powerType == PowerType.Artefact || powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash)
|
if (powerType == PowerType.Artefact || powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash || powerType == PowerType.Ladder)
|
||||||
{
|
{
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 0.0f);
|
meshRenderer.materials[1].SetFloat("_Outline", 0.0f);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user