feat: Wall run
This commit is contained in:
@@ -1,5 +1,36 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!206 &-8856798706878127083
|
||||
BlendTree:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: walkOrRun
|
||||
m_Childs:
|
||||
- serializedVersion: 2
|
||||
m_Motion: {fileID: 7400000, guid: bba630295409b484b97df6d931d247f4, type: 2}
|
||||
m_Threshold: 0
|
||||
m_Position: {x: 0, y: 0}
|
||||
m_TimeScale: 1
|
||||
m_CycleOffset: 0
|
||||
m_DirectBlendParameter: move
|
||||
m_Mirror: 0
|
||||
- serializedVersion: 2
|
||||
m_Motion: {fileID: 3350419700628647298}
|
||||
m_Threshold: 1
|
||||
m_Position: {x: 0, y: 0}
|
||||
m_TimeScale: 1
|
||||
m_CycleOffset: 0
|
||||
m_DirectBlendParameter: move
|
||||
m_Mirror: 0
|
||||
m_BlendParameter: run
|
||||
m_BlendParameterY: Blend
|
||||
m_MinThreshold: 0
|
||||
m_MaxThreshold: 1
|
||||
m_UseAutomaticThresholds: 1
|
||||
m_NormalizedBlendValues: 0
|
||||
m_BlendType: 0
|
||||
--- !u!1101 &-5485362655117760516
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
@@ -49,6 +80,21 @@ AnimatorState:
|
||||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
m_TimeParameter:
|
||||
--- !u!206 &-4688698933107788323
|
||||
BlendTree:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: BlendTree
|
||||
m_Childs: []
|
||||
m_BlendParameter: move
|
||||
m_BlendParameterY: Blend
|
||||
m_MinThreshold: 0
|
||||
m_MaxThreshold: 1
|
||||
m_UseAutomaticThresholds: 1
|
||||
m_NormalizedBlendValues: 0
|
||||
m_BlendType: 0
|
||||
--- !u!1101 &-3226574835590216239
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
@@ -224,6 +270,21 @@ AnimatorStateMachine:
|
||||
m_ExitPosition: {x: 800, y: 120, z: 0}
|
||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||
m_DefaultState: {fileID: 5056364956027464035}
|
||||
--- !u!206 &-602548221408612881
|
||||
BlendTree:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: BlendTree
|
||||
m_Childs: []
|
||||
m_BlendParameter: move
|
||||
m_BlendParameterY: Blend
|
||||
m_MinThreshold: 0
|
||||
m_MaxThreshold: 1
|
||||
m_UseAutomaticThresholds: 1
|
||||
m_NormalizedBlendValues: 0
|
||||
m_BlendType: 0
|
||||
--- !u!91 &9100000
|
||||
AnimatorController:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -239,6 +300,18 @@ AnimatorController:
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
- m_Name: run
|
||||
m_Type: 1
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
- m_Name: wall
|
||||
m_Type: 1
|
||||
m_DefaultFloat: 0.5
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
- m_Name: trigger_move
|
||||
m_Type: 9
|
||||
m_DefaultFloat: 0
|
||||
@@ -370,6 +443,45 @@ AnimatorStateTransition:
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!206 &3350419700628647298
|
||||
BlendTree:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: run
|
||||
m_Childs:
|
||||
- serializedVersion: 2
|
||||
m_Motion: {fileID: 7400000, guid: 37f55d821e29a3d44803b8640000e23e, type: 2}
|
||||
m_Threshold: 0
|
||||
m_Position: {x: 0, y: 0}
|
||||
m_TimeScale: 1
|
||||
m_CycleOffset: 0
|
||||
m_DirectBlendParameter: move
|
||||
m_Mirror: 0
|
||||
- serializedVersion: 2
|
||||
m_Motion: {fileID: 7400000, guid: c7a78f46c90bf344999d8300c1b01a62, type: 2}
|
||||
m_Threshold: 0.5
|
||||
m_Position: {x: 0, y: 0}
|
||||
m_TimeScale: 1
|
||||
m_CycleOffset: 0
|
||||
m_DirectBlendParameter: move
|
||||
m_Mirror: 0
|
||||
- serializedVersion: 2
|
||||
m_Motion: {fileID: 7400000, guid: 7a6241ab5cb021642aac569da953097a, type: 2}
|
||||
m_Threshold: 1
|
||||
m_Position: {x: 0, y: 0}
|
||||
m_TimeScale: 1
|
||||
m_CycleOffset: 0
|
||||
m_DirectBlendParameter: move
|
||||
m_Mirror: 0
|
||||
m_BlendParameter: wall
|
||||
m_BlendParameterY: Blend
|
||||
m_MinThreshold: 0
|
||||
m_MaxThreshold: 1
|
||||
m_UseAutomaticThresholds: 1
|
||||
m_NormalizedBlendValues: 0
|
||||
m_BlendType: 0
|
||||
--- !u!1102 &5056364956027464035
|
||||
AnimatorState:
|
||||
serializedVersion: 6
|
||||
@@ -392,7 +504,7 @@ AnimatorState:
|
||||
m_TimeParameterActive: 0
|
||||
m_Motion: {fileID: 7664462660922354015}
|
||||
m_Tag:
|
||||
m_SpeedParameter:
|
||||
m_SpeedParameter: move
|
||||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
m_TimeParameter:
|
||||
@@ -427,7 +539,7 @@ BlendTree:
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Blend Tree
|
||||
m_Name: move
|
||||
m_Childs:
|
||||
- serializedVersion: 2
|
||||
m_Motion: {fileID: 7400000, guid: 8c806d9fbb21847439297a4495ec07ea, type: 2}
|
||||
@@ -438,12 +550,12 @@ BlendTree:
|
||||
m_DirectBlendParameter: Blend
|
||||
m_Mirror: 0
|
||||
- serializedVersion: 2
|
||||
m_Motion: {fileID: 7400000, guid: bba630295409b484b97df6d931d247f4, type: 2}
|
||||
m_Motion: {fileID: -8856798706878127083}
|
||||
m_Threshold: 1
|
||||
m_Position: {x: 0, y: 0}
|
||||
m_TimeScale: 1
|
||||
m_CycleOffset: 0
|
||||
m_DirectBlendParameter: Blend
|
||||
m_DirectBlendParameter: move
|
||||
m_Mirror: 0
|
||||
m_BlendParameter: move
|
||||
m_BlendParameterY: Blend
|
||||
@@ -520,8 +632,8 @@ AnimatorStateTransition:
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.03437853
|
||||
m_TransitionOffset: 0
|
||||
m_TransitionDuration: 0.12249732
|
||||
m_TransitionOffset: 0.076369606
|
||||
m_ExitTime: 0.75
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
|
||||
BIN
Assets/_Content/Models/Characters/Bot/Animations/run.anim
LFS
Normal file
BIN
Assets/_Content/Models/Characters/Bot/Animations/run.anim
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c7a78f46c90bf344999d8300c1b01a62
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 7400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/_Content/Models/Characters/Bot/Animations/runWallLeft.anim
LFS
Normal file
BIN
Assets/_Content/Models/Characters/Bot/Animations/runWallLeft.anim
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37f55d821e29a3d44803b8640000e23e
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 7400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/_Content/Models/Characters/Bot/Animations/runWallRight.anim
LFS
Normal file
BIN
Assets/_Content/Models/Characters/Bot/Animations/runWallRight.anim
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a6241ab5cb021642aac569da953097a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 7400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -68,6 +68,10 @@ PrefabInstance:
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 385561929513473945, guid: 2b8eab5f9e0c5c649a40b323ec6d99db, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: 2b8eab5f9e0c5c649a40b323ec6d99db, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Bot
|
||||
@@ -88,7 +92,8 @@ PrefabInstance:
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedComponents:
|
||||
- {fileID: 2223639932434330405, guid: 2b8eab5f9e0c5c649a40b323ec6d99db, type: 3}
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents:
|
||||
|
||||
Binary file not shown.
@@ -108,7 +108,187 @@ ModelImporter:
|
||||
humanDescription:
|
||||
serializedVersion: 3
|
||||
human: []
|
||||
skeleton: []
|
||||
skeleton:
|
||||
- name: bot(Clone)
|
||||
parentName:
|
||||
position: {x: -0, y: 0, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: meshes
|
||||
parentName: bot(Clone)
|
||||
position: {x: -0, y: 0, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: accessories
|
||||
parentName: meshes
|
||||
position: {x: -0, y: 0, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: boxer
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 0.7527527, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1.1309773, y: 1.0875494, z: 1.1309773}
|
||||
- name: catEars
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 1.2719154, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: hat
|
||||
parentName: accessories
|
||||
position: {x: 0.12592448, y: 1.4091345, z: 0.1319935}
|
||||
rotation: {x: 0.21247292, y: -0.061253037, z: -0.25275907, w: 0.94192153}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: horns
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 1.2537463, z: 0.44916025}
|
||||
rotation: {x: 0.44587576, y: -0, z: -0, w: 0.8950949}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: mohawk
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 0, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: nose
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 1.0499041, z: 0.493445}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: rocketLauncher
|
||||
parentName: accessories
|
||||
position: {x: 0.1481002, y: 1.0566165, z: -0.14841615}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: sunglasses
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 1.1250585, z: 0.47607607}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: tie
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 0.8645468, z: 0.35925347}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: wings
|
||||
parentName: accessories
|
||||
position: {x: -0, y: 1.0537323, z: -0.35972846}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: body
|
||||
parentName: meshes
|
||||
position: {x: -0, y: 0, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: hatch_L
|
||||
parentName: meshes
|
||||
position: {x: 0.23244224, y: 1.2750509, z: -0.23244226}
|
||||
rotation: {x: 0, y: -0.38268346, z: -0, w: 0.92387956}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: hatch_R
|
||||
parentName: meshes
|
||||
position: {x: -0.23244224, y: 1.2750509, z: -0.23244226}
|
||||
rotation: {x: 0, y: 0.38268346, z: -0, w: 0.92387956}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: skeleton
|
||||
parentName: bot(Clone)
|
||||
position: {x: -0, y: 0, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_body
|
||||
parentName: skeleton
|
||||
position: {x: -0, y: 0.75, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_hatch_L
|
||||
parentName: jnt_body
|
||||
position: {x: 0.23244224, y: 0.52505094, z: -0.23244226}
|
||||
rotation: {x: 0, y: -0.38268346, z: -0, w: 0.92387956}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_hatch_R
|
||||
parentName: jnt_body
|
||||
position: {x: -0.23244224, y: 0.52505094, z: -0.23244226}
|
||||
rotation: {x: 0, y: 0.38268346, z: -0, w: 0.92387956}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_head
|
||||
parentName: jnt_body
|
||||
position: {x: -0, y: 0.3602, z: 0.266}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_hip_L
|
||||
parentName: jnt_body
|
||||
position: {x: -0.154, y: -0.225, z: 0}
|
||||
rotation: {x: 1, y: 0, z: -0, w: 0.00000012489448}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_knee_L
|
||||
parentName: jnt_hip_L
|
||||
position: {x: -0, y: 0.20999996, z: -7.888609e-33}
|
||||
rotation: {x: 0.00000020847868, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_foot_L
|
||||
parentName: jnt_knee_L
|
||||
position: {x: -0, y: 0.31500003, z: -4.32175e-20}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_hip_R
|
||||
parentName: jnt_body
|
||||
position: {x: 0.154, y: -0.225, z: 0}
|
||||
rotation: {x: -0.00000012489448, y: -0.000000010536712, z: -1.3201222e-15, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_knee_R
|
||||
parentName: jnt_hip_R
|
||||
position: {x: -0, y: -0.21, z: 2.57176e-17}
|
||||
rotation: {x: 0.0000002084853, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_foot_R
|
||||
parentName: jnt_knee_R
|
||||
position: {x: -0, y: -0.315, z: 3.8619597e-17}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_rocketLauncher_1
|
||||
parentName: jnt_body
|
||||
position: {x: 0.1481002, y: 0.7417898, z: -0.14841615}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_rocketLauncher_2
|
||||
parentName: jnt_rocketLauncher_1
|
||||
position: {x: -0, y: 0.04662567, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_rocketLauncher_3
|
||||
parentName: jnt_rocketLauncher_2
|
||||
position: {x: -0, y: 0.06190043, z: 1.7763568e-17}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_shoulder_L
|
||||
parentName: jnt_body
|
||||
position: {x: -0.364, y: 0.22719999, z: 0}
|
||||
rotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_elbow_L
|
||||
parentName: jnt_shoulder_L
|
||||
position: {x: -0, y: 0.21000001, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_wrist_L
|
||||
parentName: jnt_elbow_L
|
||||
position: {x: -0, y: 0.23099998, z: 0}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_shoulder_R
|
||||
parentName: jnt_body
|
||||
position: {x: 0.364, y: 0.22719999, z: 0}
|
||||
rotation: {x: 0.7071068, y: -0.7071068, z: 4.3297806e-17, w: -4.3297806e-17}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_elbow_R
|
||||
parentName: jnt_shoulder_R
|
||||
position: {x: -0, y: -0.21, z: 2.5717581e-17}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
- name: jnt_wrist_R
|
||||
parentName: jnt_elbow_R
|
||||
position: {x: -0, y: -0.23099999, z: 2.8289342e-17}
|
||||
rotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
scale: {x: 1, y: 1, z: 1}
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
@@ -117,13 +297,13 @@ ModelImporter:
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
globalScale: 1
|
||||
rootMotionBoneName:
|
||||
rootMotionBoneName: skeleton
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 1
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
autoGenerateAvatarMappingIfUnspecified: 1
|
||||
animationType: 2
|
||||
animationType: 1
|
||||
humanoidOversampling: 1
|
||||
avatarSetup: 0
|
||||
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||
|
||||
136
Assets/_Content/Models/Rocket/Materials/M_rocket_particles.mat
Normal file
136
Assets/_Content/Models/Rocket/Materials/M_rocket_particles.mat
Normal file
@@ -0,0 +1,136 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-4816827675251227542
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: M_rocket_particles
|
||||
m_Shader: {fileID: 10720, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 10912, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BumpScale: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 0
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 0
|
||||
- _Metallic: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.005
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0.5
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _WorkflowMode: 1
|
||||
- _XRMotionVectorsPass: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c4cc431b8921de48a3110e749e5d717
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
5002
Assets/_Content/Models/Rocket/PlayerRocket.prefab
Normal file
5002
Assets/_Content/Models/Rocket/PlayerRocket.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/_Content/Models/Rocket/PlayerRocket.prefab.meta
Normal file
7
Assets/_Content/Models/Rocket/PlayerRocket.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a9cec4651de297468e58cfec6662a0b
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -4990,13 +4990,16 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Rocket
|
||||
_references:
|
||||
Collider: {fileID: 3421410324237347847}
|
||||
Rigidbody: {fileID: 8647439102665066865}
|
||||
Fire: {fileID: 7183850674227049229}
|
||||
Explosion: {fileID: 7101154270830653306, guid: 315e0ca5cbe6f614f9e0c9ffeffb0e96, type: 3}
|
||||
_settings:
|
||||
IsKinematic: 0
|
||||
LaunchOnEnable: 0
|
||||
Speed: 8
|
||||
Duration: 2
|
||||
GostTime: 0
|
||||
_state:
|
||||
Launched: 0
|
||||
Disabled: 0
|
||||
|
||||
819
Assets/_Content/Scenes/Menu.unity
Normal file
819
Assets/_Content/Scenes/Menu.unity
Normal file
@@ -0,0 +1,819 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 10
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 13
|
||||
m_BakeOnSceneLoad: 0
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 2
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 1
|
||||
m_PVRFilteringGaussRadiusAO: 1
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_LightingSettings: {fileID: 0}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 3
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
buildHeightMesh: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &697094281
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 697094282}
|
||||
- component: {fileID: 697094284}
|
||||
- component: {fileID: 697094283}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &697094282
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 697094281}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1734755302}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &697094283
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 697094281}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: START
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: e73a58f6e2794ae7b1b7e50b7fb811b0, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 58.4
|
||||
m_fontSizeBase: 58.4
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 0
|
||||
m_fontSizeMax: 0
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 0
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures:
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &697094284
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 697094281}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1184723403
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1184723405}
|
||||
- component: {fileID: 1184723404}
|
||||
m_Layer: 0
|
||||
m_Name: Managers
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1184723404
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1184723403}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 98ebfc824c0127543899cdebb2b175f3, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::SceneLoader
|
||||
--- !u!4 &1184723405
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1184723403}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1293284616
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1293284620}
|
||||
- component: {fileID: 1293284619}
|
||||
- component: {fileID: 1293284618}
|
||||
- component: {fileID: 1293284617}
|
||||
m_Layer: 0
|
||||
m_Name: Camera
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1293284617
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1293284616}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.UniversalAdditionalCameraData
|
||||
m_RenderShadows: 1
|
||||
m_RequiresDepthTextureOption: 2
|
||||
m_RequiresOpaqueTextureOption: 2
|
||||
m_CameraType: 0
|
||||
m_Cameras: []
|
||||
m_RendererIndex: -1
|
||||
m_VolumeLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 1
|
||||
m_VolumeTrigger: {fileID: 0}
|
||||
m_VolumeFrameworkUpdateModeOption: 2
|
||||
m_RenderPostProcessing: 0
|
||||
m_Antialiasing: 0
|
||||
m_AntialiasingQuality: 2
|
||||
m_StopNaN: 0
|
||||
m_Dithering: 0
|
||||
m_ClearDepth: 1
|
||||
m_AllowXRRendering: 1
|
||||
m_AllowHDROutput: 1
|
||||
m_UseScreenCoordOverride: 0
|
||||
m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_RequiresDepthTexture: 0
|
||||
m_RequiresColorTexture: 0
|
||||
m_TaaSettings:
|
||||
m_Quality: 3
|
||||
m_FrameInfluence: 0.1
|
||||
m_JitterScale: 1
|
||||
m_MipBias: 0
|
||||
m_VarianceClampScale: 0.9
|
||||
m_ContrastAdaptiveSharpening: 0
|
||||
m_Version: 2
|
||||
--- !u!81 &1293284618
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1293284616}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1293284619
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1293284616}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.19958168, g: 0.20634812, b: 0.21698111, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &1293284620
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1293284616}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0.72, z: -1.66}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1734755301
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1734755302}
|
||||
- component: {fileID: 1734755305}
|
||||
- component: {fileID: 1734755304}
|
||||
- component: {fileID: 1734755303}
|
||||
m_Layer: 5
|
||||
m_Name: Button
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1734755302
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1734755301}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 697094282}
|
||||
m_Father: {fileID: 1950345107}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -266, y: 274}
|
||||
m_SizeDelta: {x: 321.51, y: 126.8}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1734755303
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1734755301}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 1734755304}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 1184723404}
|
||||
m_TargetAssemblyTypeName: SceneLoader, Assembly-CSharp
|
||||
m_MethodName: LoadScene
|
||||
m_Mode: 5
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument: Player
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!114 &1734755304
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1734755301}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.19744569, g: 0.81203705, b: 0.8207547, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: ee1c82acda929374a82bf89c04f1104a, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &1734755305
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1734755301}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1001 &1753769530
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.51
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.3177622
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0.9481704
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -142.945
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7639418806218873425, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Bot
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
--- !u!1 &1950345103
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1950345107}
|
||||
- component: {fileID: 1950345106}
|
||||
- component: {fileID: 1950345105}
|
||||
- component: {fileID: 1950345104}
|
||||
m_Layer: 5
|
||||
m_Name: Canvas
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1950345104
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1950345103}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.GraphicRaycaster
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!114 &1950345105
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1950345103}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.CanvasScaler
|
||||
m_UiScaleMode: 1
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
m_DynamicPixelsPerUnit: 1
|
||||
m_PresetInfoIsWorld: 0
|
||||
--- !u!223 &1950345106
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1950345103}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 0
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_VertexColorAlwaysGammaSpace: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_UpdateRectTransformForStandalone: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!224 &1950345107
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1950345103}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1734755302}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!1 &2080064566
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2080064569}
|
||||
- component: {fileID: 2080064568}
|
||||
- component: {fileID: 2080064567}
|
||||
m_Layer: 0
|
||||
m_Name: EventSystem
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &2080064567
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2080064566}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.InputSystem::UnityEngine.InputSystem.UI.InputSystemUIInputModule
|
||||
m_SendPointerHoverToParent: 1
|
||||
m_MoveRepeatDelay: 0.5
|
||||
m_MoveRepeatRate: 0.1
|
||||
m_XRTrackingOrigin: {fileID: 0}
|
||||
m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_PointAction: {fileID: -1654692200621890270, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_MoveAction: {fileID: -8784545083839296357, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_SubmitAction: {fileID: 392368643174621059, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_CancelAction: {fileID: 7727032971491509709, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_LeftClickAction: {fileID: 3001919216989983466, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_MiddleClickAction: {fileID: -2185481485913320682, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_RightClickAction: {fileID: -4090225696740746782, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_ScrollWheelAction: {fileID: 6240969308177333660, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_TrackedDevicePositionAction: {fileID: 6564999863303420839, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_TrackedDeviceOrientationAction: {fileID: 7970375526676320489, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||
m_DeselectOnBackgroundClick: 1
|
||||
m_PointerBehavior: 0
|
||||
m_CursorLockBehavior: 0
|
||||
m_ScrollDeltaPerTick: 6
|
||||
--- !u!114 &2080064568
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2080064566}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.EventSystems.EventSystem
|
||||
m_FirstSelected: {fileID: 0}
|
||||
m_sendNavigationEvents: 1
|
||||
m_DragThreshold: 10
|
||||
--- !u!4 &2080064569
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2080064566}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
m_Roots:
|
||||
- {fileID: 1293284620}
|
||||
- {fileID: 1184723405}
|
||||
- {fileID: 1950345107}
|
||||
- {fileID: 2080064569}
|
||||
- {fileID: 1753769530}
|
||||
7
Assets/_Content/Scenes/Menu.unity.meta
Normal file
7
Assets/_Content/Scenes/Menu.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 532422b4ac5f1f74eac3cf7e2d261e6f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1955,6 +1955,11 @@ MeshFilter:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 216000217}
|
||||
m_Mesh: {fileID: 89712945287117100, guid: 3d620c9bb0ffa294392346026c6ab8cf, type: 3}
|
||||
--- !u!4 &236005329 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
m_PrefabInstance: {fileID: 345182645}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &236372348
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3438,6 +3443,71 @@ PrefabInstance:
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
--- !u!1001 &345182645
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1860867013}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 3.1320355
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 1.7084
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -2.92
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 3.45
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 8.97
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3200704831521566212, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Box (12)
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
--- !u!4 &351708928 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7920262688555322226, guid: f5e63c372a243fb4e86e3557dbf7a2af, type: 3}
|
||||
@@ -4786,6 +4856,11 @@ MeshFilter:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 539316505}
|
||||
m_Mesh: {fileID: 89712945287117100, guid: 3d620c9bb0ffa294392346026c6ab8cf, type: 3}
|
||||
--- !u!4 &543456692 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
m_PrefabInstance: {fileID: 1707180187}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &566271955 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
@@ -7846,8 +7921,8 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 961739749}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.17364815, y: 0, z: 0, w: 0.9848078}
|
||||
m_LocalPosition: {x: 0, y: 3.3808498, z: -5.1401186}
|
||||
m_LocalRotation: {x: 0.17364813, y: 0, z: 0, w: 0.9848078}
|
||||
m_LocalPosition: {x: 0.060596474, y: 4.56085, z: -1.3222187}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@@ -8945,6 +9020,7 @@ GameObject:
|
||||
- component: {fileID: 1241925581}
|
||||
- component: {fileID: 1241925582}
|
||||
- component: {fileID: 1241925583}
|
||||
- component: {fileID: 1241925584}
|
||||
m_Layer: 0
|
||||
m_Name: Player
|
||||
m_TagString: Untagged
|
||||
@@ -8961,7 +9037,7 @@ Transform:
|
||||
m_GameObject: {fileID: 1241925580}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalPosition: {x: 0.060596474, y: 1.1800001, z: 3.8179}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
@@ -9006,7 +9082,8 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Player
|
||||
_settings:
|
||||
Speed: 18
|
||||
WalkSpeed: 15
|
||||
RunSpeed: 30
|
||||
JumpForce: 8
|
||||
RotationSpeed: 10
|
||||
GroundTolerance: 0.2
|
||||
@@ -9015,17 +9092,54 @@ MonoBehaviour:
|
||||
m_Bits: 64
|
||||
DeathLayer:
|
||||
serializedVersion: 2
|
||||
m_Bits: 128
|
||||
m_Bits: 256
|
||||
ExtraForcesDrag: 8
|
||||
StateLogs: 0
|
||||
WallRun:
|
||||
CanRunOnWalls: 1
|
||||
WallLayer:
|
||||
serializedVersion: 2
|
||||
m_Bits: 128
|
||||
StickDuration: 3
|
||||
StickedGravity: -5
|
||||
_references:
|
||||
Controller: {fileID: 1241925582}
|
||||
InputActions: {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3}
|
||||
_state:
|
||||
CurrentState: 0
|
||||
IsPaused: 0
|
||||
IsStickedToWall: 0
|
||||
CanStickToWalls: 0
|
||||
Running: 0
|
||||
AnimationCenter: 0
|
||||
StickedTime: 0
|
||||
Velocity: {x: 0, y: 0, z: 0}
|
||||
Ground: {fileID: 0}
|
||||
--- !u!114 &1241925584
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1241925580}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 49dc81798e7cf0e49a7711d9fbe04cfb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::PlayerRockerLauncher
|
||||
_settings:
|
||||
InfiniteAmo: 1
|
||||
_references:
|
||||
InputActions: {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3}
|
||||
RocketPrefab: {fileID: 2436197850869798173, guid: 3a9cec4651de297468e58cfec6662a0b, type: 3}
|
||||
LauncherMesh: {fileID: 1983512537}
|
||||
HatchJoint: {fileID: 1983512538}
|
||||
RootJoint: {fileID: 1983512536}
|
||||
YawJoint: {fileID: 1983512535}
|
||||
PitchJoint: {fileID: 1983512534}
|
||||
RocketOrigin: {fileID: 1674411728}
|
||||
_state:
|
||||
RocketCount: 0
|
||||
--- !u!1 &1255611636
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -11305,6 +11419,37 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 987553818}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1674411727
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1674411728}
|
||||
m_Layer: 0
|
||||
m_Name: RocketOrigin
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!4 &1674411728
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1674411727}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0.0333, z: 0}
|
||||
m_LocalScale: {x: 0.25, y: 0.25, z: 0.25}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1983512534}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1685812789
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -11447,6 +11592,79 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 987553818}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1707180187
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1860867013}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.8208487
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 2.9760866
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 15.5064535
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -5.09
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 5.81
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 17.38
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3200704831521566212, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Box (11)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3200704831521566212, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
--- !u!1 &1733604668
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -12232,8 +12450,10 @@ Transform:
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 101467269}
|
||||
- {fileID: 236005329}
|
||||
- {fileID: 2060852412}
|
||||
- {fileID: 1607323245}
|
||||
- {fileID: 543456692}
|
||||
- {fileID: 1866035694}
|
||||
- {fileID: 271625892}
|
||||
- {fileID: 769604561}
|
||||
@@ -12972,6 +13192,86 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1241925581}
|
||||
m_Modifications:
|
||||
- target: {fileID: 268460015814896494, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -15.164258
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 515651249267132972, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: -2.1471262
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 515651249267132972, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -78.473274
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 515651249267132972, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: -17.946148
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1023976236318260526, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 19.022964
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1085018038773518629, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 2.2170444
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1196437872353818382, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 2.1471004
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1196437872353818382, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -0.6677202
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1196437872353818382, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 162.05385
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1359220671651305999, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1359220671651305999, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -14.294655
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1359220671651305999, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1926761924806370936, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 2.2170444
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3796740718803257271, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 13.271196
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3796740718803257271, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -58.92919
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3796740718803257271, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 58.843697
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4621082995820886609, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -15.164258
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5732306035247200757, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 19.022953
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6268899434028451206, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_Avatar
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6268899434028451206, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_WarningMessage
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7011957565800906987, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
@@ -13012,18 +13312,62 @@ PrefabInstance:
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7177622575231594649, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7257265485733381636, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: -13.271184
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7257265485733381636, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0.08320768
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7257265485733381636, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0.16870025
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7639418806218873425, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Bot
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 5710164197763132161, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 1674411728}
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 7639418806218873425, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 1297534486}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
--- !u!4 &1983512534 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 5710164197763132161, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
m_PrefabInstance: {fileID: 1983512533}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &1983512535 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 8456217366200567029, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
m_PrefabInstance: {fileID: 1983512533}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &1983512536 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 8478000046786846209, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
m_PrefabInstance: {fileID: 1983512533}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1983512537 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7177622575231594649, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
m_PrefabInstance: {fileID: 1983512533}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &1983512538 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 1922065289920262768, guid: dce89e082ea7b9c48ab0fe0f0d38f147, type: 3}
|
||||
m_PrefabInstance: {fileID: 1983512533}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1997368252
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -13534,11 +13878,11 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.9
|
||||
value: 1.87
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 8.11
|
||||
value: 7.36
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2819500458535056574, guid: d300926439843ef41a17d1d5a9504679, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using TMPro.EditorUtilities;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.InputSystem;
|
||||
@@ -18,13 +19,32 @@ public class Player : MonoBehaviour
|
||||
Winner,
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class WallRun
|
||||
{
|
||||
[Tooltip("Can the player run along walls?")]
|
||||
public bool CanRunOnWalls = true;
|
||||
|
||||
[Tooltip("Layers considered as walkable wall")]
|
||||
public LayerMask WallLayer = 0;
|
||||
|
||||
[Tooltip("Stick duration to wall before fall")]
|
||||
public float StickDuration = 3;
|
||||
|
||||
[Tooltip("Gravity applyed when sticked to wall")]
|
||||
public float StickedGravity = -5;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class Settings
|
||||
{
|
||||
[Header("Movements")]
|
||||
|
||||
[Tooltip("Movement speed in km/h")]
|
||||
public float Speed = 18f;
|
||||
[Tooltip("Walk speed in km/h")]
|
||||
public float WalkSpeed = 15f;
|
||||
|
||||
[Tooltip("Run speed in km/h")]
|
||||
public float RunSpeed = 30f;
|
||||
|
||||
[Tooltip("Jump force in m/s")]
|
||||
public float JumpForce = 8f;
|
||||
@@ -50,6 +70,10 @@ public class Player : MonoBehaviour
|
||||
|
||||
[Tooltip("GUI logs of current state")]
|
||||
public bool StateLogs;
|
||||
|
||||
[Header("Features")]
|
||||
|
||||
public WallRun WallRun;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
@@ -67,6 +91,21 @@ public class Player : MonoBehaviour
|
||||
|
||||
[Tooltip("Is player paused?")]
|
||||
public bool IsPaused = false;
|
||||
|
||||
[Tooltip("Is player sticked to wall?")]
|
||||
public bool IsStickedToWall;
|
||||
|
||||
[Tooltip("Can player stick to walls?")]
|
||||
public bool CanStickToWalls;
|
||||
|
||||
[Tooltip("Current running state")]
|
||||
[Range(0, 1)] public float Running;
|
||||
|
||||
[Tooltip("Animation center of gravity")]
|
||||
[Range(-1, 1)] public float AnimationCenter;
|
||||
|
||||
[Tooltip("Elapsed time since sticked to wall")]
|
||||
[Range(-1, 1)] public float StickedTime;
|
||||
|
||||
[Tooltip("Current velocity in m/s")]
|
||||
public Vector3 Velocity;
|
||||
@@ -95,6 +134,7 @@ public class Player : MonoBehaviour
|
||||
#region Private Fields
|
||||
// Inputs
|
||||
private InputAction _moveAction;
|
||||
private InputAction _runAction;
|
||||
private InputAction _jumpAction;
|
||||
|
||||
// Camera
|
||||
@@ -105,12 +145,21 @@ public class Player : MonoBehaviour
|
||||
private Vector3 _groundCheckSphereOffset;
|
||||
private float _groundCheckRadius;
|
||||
private Collider[] _overlapResults = new Collider[1];
|
||||
private Vector3 _wallDirection;
|
||||
private Vector3 _wallPosition;
|
||||
private Vector3 _lastPlatformPosition;
|
||||
private Quaternion _lastPlatformRotation;
|
||||
private Vector3 _platformVelocity;
|
||||
#endregion
|
||||
|
||||
#region Unity Lifecycle
|
||||
/*void OnDrawGizmos()
|
||||
{
|
||||
Gizmos.matrix = transform.localToWorldMatrix;
|
||||
Gizmos.color = new Color(.2f, 1, .7f, .3f);
|
||||
Gizmos.DrawSphere(_groundCheckSphereOffset, _groundCheckRadius);
|
||||
}*/
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (!Instance)
|
||||
@@ -118,6 +167,7 @@ public class Player : MonoBehaviour
|
||||
|
||||
// Inputs
|
||||
_moveAction = _references.InputActions.FindActionMap("Player").FindAction("Move");
|
||||
_runAction = _references.InputActions.FindActionMap("Player").FindAction("Sprint");
|
||||
_jumpAction = _references.InputActions.FindActionMap("Player").FindAction("Jump");
|
||||
|
||||
// Camera
|
||||
@@ -133,12 +183,14 @@ public class Player : MonoBehaviour
|
||||
void OnEnable()
|
||||
{
|
||||
_moveAction?.Enable();
|
||||
_runAction?.Enable();
|
||||
_jumpAction?.Enable();
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
_moveAction?.Disable();
|
||||
_runAction?.Disable();
|
||||
_jumpAction?.Disable();
|
||||
}
|
||||
|
||||
@@ -159,19 +211,79 @@ public class Player : MonoBehaviour
|
||||
private void CheckGround(float deltaTime)
|
||||
{
|
||||
// Raycast for center contact
|
||||
RaycastHit rayInfo;
|
||||
Vector3 rayOrigin = transform.position + _groundCheckRayOffset;
|
||||
bool rayHit = Physics.Raycast(rayOrigin, Vector3.down, out RaycastHit rayInfo,
|
||||
_settings.GroundTolerance * 2f, _settings.GroundLayer);
|
||||
bool rayHit = Physics.Raycast(rayOrigin, Vector3.down, out rayInfo, _settings.GroundTolerance * 2f, _settings.GroundLayer);
|
||||
|
||||
// OverlapSphere for edge contact
|
||||
Vector3 sphereOrigin = transform.position + _groundCheckSphereOffset;
|
||||
int overlapCount = Physics.OverlapSphereNonAlloc(sphereOrigin, _groundCheckRadius, _overlapResults, _settings.GroundLayer);
|
||||
bool sphereHit = overlapCount > 0;
|
||||
|
||||
|
||||
bool wasGrounded = _state.IsGrounded;
|
||||
bool isGrounded = rayHit || sphereHit;
|
||||
|
||||
if (isGrounded)
|
||||
// Wall run
|
||||
bool isStickedToWall = false;
|
||||
if (!isGrounded && _settings.WallRun.CanRunOnWalls && _state.CanStickToWalls && _state.VerticalVelocity < 0)
|
||||
{
|
||||
int[] wallCheckAngles = new int[6] { 80, 70, 60, 50, 40, 30 };
|
||||
int raySign = 1;
|
||||
|
||||
for (int i = 0; i < wallCheckAngles.Length; i++)
|
||||
{
|
||||
if (isStickedToWall)
|
||||
break;
|
||||
|
||||
for (int u = -1; u <= 1; u += 2)
|
||||
{
|
||||
Vector3 rayDir = Quaternion.Euler(0, wallCheckAngles[i] * u, 0) * transform.forward;
|
||||
float rayOffset = _references.Controller.radius * .8f;
|
||||
float raySize = _references.Controller.radius * .7f;
|
||||
|
||||
isStickedToWall = Physics.Raycast(rayOrigin + rayDir * rayOffset, rayDir, out rayInfo, raySize, _settings.WallRun.WallLayer);
|
||||
Debug.DrawRay(rayOrigin + rayDir * rayOffset, rayDir * raySize, isStickedToWall ? Color.green : Color.red);
|
||||
|
||||
if (isStickedToWall)
|
||||
{
|
||||
raySign = u;
|
||||
goto AfterRaycastWall;
|
||||
}
|
||||
}
|
||||
}
|
||||
AfterRaycastWall:
|
||||
|
||||
if (!_state.IsStickedToWall && isStickedToWall)
|
||||
_state.StickedTime = 0;
|
||||
else if (_state.IsStickedToWall && !isStickedToWall)
|
||||
_state.CanStickToWalls = false;
|
||||
|
||||
_state.IsStickedToWall = isStickedToWall;
|
||||
|
||||
if (_state.IsStickedToWall)
|
||||
{
|
||||
_wallDirection = Vector3.ProjectOnPlane(Vector3.Cross(rayInfo.normal, Vector3.up), Vector3.up) * Mathf.Sign(Vector3.Cross(transform.forward, rayInfo.normal).y);
|
||||
_wallPosition = rayInfo.point;
|
||||
_state.AnimationCenter = raySign;
|
||||
_state.Running = 1;
|
||||
|
||||
if (_state.StickedTime >= _settings.WallRun.StickDuration)
|
||||
{
|
||||
_state.IsStickedToWall = false;
|
||||
_state.CanStickToWalls = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (isGrounded)
|
||||
{
|
||||
_state.IsStickedToWall = false;
|
||||
_state.CanStickToWalls = true;
|
||||
}
|
||||
|
||||
if (!isStickedToWall)
|
||||
_state.AnimationCenter = 0;
|
||||
|
||||
if (isGrounded || isStickedToWall)
|
||||
{
|
||||
Transform currentGround = rayHit ? rayInfo.collider.transform : _overlapResults[0].transform;
|
||||
|
||||
@@ -227,14 +339,18 @@ public class Player : MonoBehaviour
|
||||
platformVelocity.y = _platformVelocity.y;
|
||||
_platformVelocity = platformVelocity;
|
||||
}
|
||||
|
||||
|
||||
_state.Ground = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void SetGravity(float deltaTime)
|
||||
{
|
||||
if (_state.IsGrounded && _state.Velocity.y < 0)
|
||||
if (_state.IsStickedToWall)
|
||||
{
|
||||
_state.Velocity.y = _settings.WallRun.StickedGravity * Mathf.Pow(_state.StickedTime / _settings.WallRun.StickDuration, 2);
|
||||
}
|
||||
else if (_state.IsGrounded && _state.Velocity.y < 0)
|
||||
{
|
||||
_state.Velocity.y = STICK_FORCE;
|
||||
}
|
||||
@@ -260,10 +376,21 @@ public class Player : MonoBehaviour
|
||||
{
|
||||
Vector2 input = _moveAction.ReadValue<Vector2>();
|
||||
|
||||
float speed = _settings.Speed * KMH_TO_MS;
|
||||
bool run = _runAction.IsPressed();
|
||||
_state.Running = Mathf.Clamp01(_state.Running + deltaTime * 4 * (run ? 1 : -1));
|
||||
|
||||
float speed = Mathf.Lerp(_settings.WalkSpeed, _settings.RunSpeed, _state.Running) * KMH_TO_MS;
|
||||
|
||||
Vector3 moveInput = new Vector3(input.x, 0, input.y); // Convert input 2D to move 3D
|
||||
moveInput = Quaternion.Euler(0, _camera.transform.eulerAngles.y, 0) * moveInput; // Rotate move toward camera
|
||||
if (_state.IsStickedToWall)
|
||||
{
|
||||
_state.StickedTime += deltaTime * Mathf.Lerp(4, 1, moveInput.magnitude);
|
||||
moveInput = _wallDirection * Mathf.Sqrt(1 - _state.StickedTime / _settings.WallRun.StickDuration);
|
||||
}
|
||||
else
|
||||
{
|
||||
moveInput = Quaternion.Euler(0, _camera.transform.eulerAngles.y, 0) * moveInput; // Rotate move toward camera
|
||||
}
|
||||
moveInput *= speed; // Muliply move by speed
|
||||
|
||||
_state.Velocity.x = moveInput.x;
|
||||
@@ -273,6 +400,9 @@ public class Player : MonoBehaviour
|
||||
if (moveInput.sqrMagnitude > .001f)
|
||||
{
|
||||
Quaternion targetRot = Quaternion.LookRotation(moveInput);
|
||||
if (_state.IsStickedToWall)
|
||||
targetRot = Quaternion.LookRotation(_wallDirection);
|
||||
|
||||
float t = _settings.RotationSpeed * deltaTime;
|
||||
Vector3 euler = Quaternion.Slerp(transform.rotation, targetRot, t).eulerAngles;
|
||||
|
||||
@@ -282,10 +412,14 @@ public class Player : MonoBehaviour
|
||||
|
||||
private void SetJump()
|
||||
{
|
||||
if (_jumpAction.triggered && _state.IsGrounded)
|
||||
if (_jumpAction.triggered && (_state.IsGrounded || _state.IsStickedToWall))
|
||||
{
|
||||
_state.Velocity.y = _settings.JumpForce;
|
||||
_state.Ground = null;
|
||||
_state.IsStickedToWall = false;
|
||||
_state.CanStickToWalls = false;
|
||||
|
||||
_groundCheckRadius = _references.Controller.radius + _settings.GroundTolerance;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,12 +427,19 @@ public class Player : MonoBehaviour
|
||||
{
|
||||
Vector3 motion = _state.Velocity + _platformVelocity;
|
||||
|
||||
if (_state.IsStickedToWall)
|
||||
{
|
||||
Vector3 wallDelta = _wallPosition - transform.position;
|
||||
wallDelta -= wallDelta.normalized * _references.Controller.radius;
|
||||
motion += wallDelta;
|
||||
}
|
||||
|
||||
_references.Controller.Move(motion * deltaTime);
|
||||
}
|
||||
|
||||
private void SetState()
|
||||
{
|
||||
if (State.IsGrounded)
|
||||
if (State.IsGrounded || State.IsStickedToWall)
|
||||
{
|
||||
if (State.HorizontalVelocity.sqrMagnitude > .1f)
|
||||
{
|
||||
|
||||
@@ -138,6 +138,8 @@ public class PlayerAnimation : MonoBehaviour
|
||||
case Player.PlayerState.Idle:
|
||||
case Player.PlayerState.Moving:
|
||||
_references.Anim.SetFloat("move", Player.Instance.State.HorizontalVelocity.magnitude);
|
||||
_references.Anim.SetFloat("run", Mathf.InverseLerp(0, .8f, Player.Instance.State.Running));
|
||||
_references.Anim.SetFloat("wall", Player.Instance.State.AnimationCenter * .5f + .5f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
126
Assets/_Content/Scripts/PlayerRockerLauncher.cs
Normal file
126
Assets/_Content/Scripts/PlayerRockerLauncher.cs
Normal file
@@ -0,0 +1,126 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
using static Player;
|
||||
|
||||
public class PlayerRockerLauncher : MonoBehaviour
|
||||
{
|
||||
[System.Serializable]
|
||||
public class References
|
||||
{
|
||||
public InputActionAsset InputActions;
|
||||
public GameObject RocketPrefab;
|
||||
public GameObject LauncherMesh;
|
||||
public Transform HatchJoint;
|
||||
public Transform RootJoint;
|
||||
public Transform YawJoint;
|
||||
public Transform PitchJoint;
|
||||
public Transform RocketOrigin;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class Settings
|
||||
{
|
||||
public bool InfiniteAmo;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class StateContainer
|
||||
{
|
||||
public int RocketCount;
|
||||
}
|
||||
|
||||
[SerializeField] private Settings _settings;
|
||||
[SerializeField] private References _references;
|
||||
[SerializeField, ReadOnly] private StateContainer _state;
|
||||
|
||||
private InputAction _targetAction;
|
||||
private InputAction _launchAction;
|
||||
private Camera _camera;
|
||||
private Rocket _rocket;
|
||||
private Vector3 _rootPos;
|
||||
private float _targeting;
|
||||
|
||||
|
||||
void Awake()
|
||||
{
|
||||
//if (!Instance)
|
||||
// Instance = this;
|
||||
|
||||
_rootPos = _references.RootJoint.transform.localPosition;
|
||||
|
||||
// Inputs
|
||||
_targetAction = _references.InputActions.FindActionMap("Player").FindAction("Target");
|
||||
_launchAction = _references.InputActions.FindActionMap("Player").FindAction("Attack");
|
||||
|
||||
// Camera
|
||||
_camera = Camera.main;
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
_targetAction?.Enable();
|
||||
_launchAction?.Enable();
|
||||
|
||||
SetLauncher();
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
_targetAction?.Disable();
|
||||
_launchAction?.Disable();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
float t = Time.deltaTime;
|
||||
|
||||
HandleTargeting(t);
|
||||
SetLauncher();
|
||||
HandleLaunch();
|
||||
ManageRockets();
|
||||
}
|
||||
|
||||
private void HandleTargeting(float deltaTime)
|
||||
{
|
||||
bool executeTarget = _targetAction.IsPressed() && _rocket;
|
||||
|
||||
_targeting = Mathf.Clamp01(_targeting + deltaTime * 2 * (executeTarget ? 1 : -1));
|
||||
}
|
||||
|
||||
private void SetLauncher()
|
||||
{
|
||||
_references.LauncherMesh.SetActive(_targeting > 0);
|
||||
_references.RocketOrigin.gameObject.SetActive(_targeting > 0);
|
||||
_references.HatchJoint.localRotation = Quaternion.Slerp(Quaternion.Euler(0, -45, 0), Quaternion.Euler(-75, -45, 0), _targeting);
|
||||
_references.RootJoint.localPosition = _rootPos + Vector3.up * Mathf.Lerp(-.8f, 0, _targeting);
|
||||
|
||||
Quaternion yaw = Quaternion.LookRotation(Vector3.ProjectOnPlane(_camera.transform.forward, Vector3.up));
|
||||
yaw = Quaternion.Slerp(_references.RootJoint.rotation, yaw, _targeting);
|
||||
|
||||
Quaternion pitch = Quaternion.Slerp(Quaternion.Euler(0, 0, 0), Quaternion.Euler(_camera.transform.eulerAngles.x + 45, 0, 0), Mathf.InverseLerp(.6f, 1, _targeting));
|
||||
|
||||
_references.YawJoint.rotation = yaw;
|
||||
_references.PitchJoint.localRotation = pitch;
|
||||
}
|
||||
|
||||
private void HandleLaunch()
|
||||
{
|
||||
if (_rocket && _targeting == 1 && _launchAction.triggered)
|
||||
{
|
||||
_rocket.Launch();
|
||||
_rocket = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void ManageRockets()
|
||||
{
|
||||
if ((_state.RocketCount > 0 || _settings.InfiniteAmo) && !_rocket && _targeting == 0)
|
||||
{
|
||||
GameObject obj = Instantiate(_references.RocketPrefab, _references.RocketOrigin);
|
||||
obj.transform.SetLocalPositionAndRotation(Vector3.zero, Quaternion.Euler(0, 0, 0));
|
||||
obj.transform.localScale = Vector3.one;
|
||||
|
||||
_rocket = obj.GetComponent<Rocket>();
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/_Content/Scripts/PlayerRockerLauncher.cs.meta
Normal file
2
Assets/_Content/Scripts/PlayerRockerLauncher.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49dc81798e7cf0e49a7711d9fbe04cfb
|
||||
@@ -6,6 +6,7 @@ public class Rocket : MonoBehaviour
|
||||
[System.Serializable]
|
||||
public class References
|
||||
{
|
||||
public Collider Collider;
|
||||
public Rigidbody Rigidbody;
|
||||
public ParticleSystem Fire;
|
||||
public GameObject Explosion;
|
||||
@@ -14,9 +15,11 @@ public class Rocket : MonoBehaviour
|
||||
[System.Serializable]
|
||||
public class Settings
|
||||
{
|
||||
public bool IsKinematic = false;
|
||||
public bool LaunchOnEnable = false;
|
||||
public float Speed = 20;
|
||||
public float Duration = 5;
|
||||
public float GostTime = 0;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
@@ -30,13 +33,18 @@ public class Rocket : MonoBehaviour
|
||||
[SerializeField] private References _references;
|
||||
[SerializeField] private Settings _settings;
|
||||
[SerializeField, ReadOnly] private State _state;
|
||||
|
||||
private Vector3 _lastPos;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
_references.Rigidbody.isKinematic = _settings.IsKinematic;
|
||||
|
||||
if (_settings.GostTime > 0)
|
||||
_references.Collider.enabled = false;
|
||||
|
||||
if (_settings.LaunchOnEnable)
|
||||
{
|
||||
Launch();
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
@@ -45,6 +53,7 @@ public class Rocket : MonoBehaviour
|
||||
{
|
||||
Vector3 force = transform.up * _settings.Speed * Time.deltaTime * 100;
|
||||
|
||||
_references.Collider.enabled = _state.FlightTime > _settings.GostTime;
|
||||
_references.Rigidbody.AddForce(force);
|
||||
|
||||
_state.FlightTime += Time.deltaTime;
|
||||
@@ -57,6 +66,27 @@ public class Rocket : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
if (_state.Launched && _state.FlightTime > _settings.Duration)
|
||||
{
|
||||
Vector3 currentPos = transform.position;
|
||||
Vector3 lookDir = currentPos - _lastPos;
|
||||
_lastPos = transform.position;
|
||||
|
||||
if (lookDir.sqrMagnitude > .001f)
|
||||
{
|
||||
lookDir = lookDir.normalized;
|
||||
|
||||
Quaternion targetRot = Quaternion.LookRotation(lookDir, Vector3.up);
|
||||
targetRot *= Quaternion.Euler(90, 0, 0);
|
||||
targetRot = Quaternion.Lerp(transform.rotation, targetRot, Time.deltaTime * 10);
|
||||
|
||||
_references.Rigidbody.MoveRotation(targetRot);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OnCollisionEnter(Collision col)
|
||||
{
|
||||
if (_state.Launched && _state.FlightTime > .5f)
|
||||
@@ -71,10 +101,16 @@ public class Rocket : MonoBehaviour
|
||||
[ContextMenu("Launch")]
|
||||
public void Launch()
|
||||
{
|
||||
transform.parent = null;
|
||||
|
||||
_references.Rigidbody.isKinematic = false;
|
||||
|
||||
_state.Launched = true;
|
||||
_state.Disabled = false;
|
||||
_state.FlightTime = 0;
|
||||
|
||||
_references.Fire.Play();
|
||||
|
||||
_lastPos = transform.position;
|
||||
}
|
||||
}
|
||||
|
||||
10
Assets/_Content/Scripts/SceneLoader.cs
Normal file
10
Assets/_Content/Scripts/SceneLoader.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class SceneLoader : MonoBehaviour
|
||||
{
|
||||
public void LoadScene(string sceneName)
|
||||
{
|
||||
SceneManager.LoadScene(sceneName);
|
||||
}
|
||||
}
|
||||
2
Assets/_Content/Scripts/SceneLoader.cs.meta
Normal file
2
Assets/_Content/Scripts/SceneLoader.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98ebfc824c0127543899cdebb2b175f3
|
||||
8
Assets/_Content/Shaders.meta
Normal file
8
Assets/_Content/Shaders.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f91b3b44ce56a0a44af689a3f7fda123
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/_Content/UI.meta
Normal file
8
Assets/_Content/UI.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 72ecf7e881937534993720b29e37f1c5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/_Content/UI/button.png
LFS
Normal file
BIN
Assets/_Content/UI/button.png
LFS
Normal file
Binary file not shown.
143
Assets/_Content/UI/button.png.meta
Normal file
143
Assets/_Content/UI/button.png.meta
Normal file
@@ -0,0 +1,143 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee1c82acda929374a82bf89c04f1104a
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 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: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user