Made some changes to GameManager and controls scene (and added some

animations)
This commit is contained in:
Evan Nydahl 2022-04-27 12:41:52 -05:00
parent 41a7908cd0
commit ffbd9a3a7a
18 changed files with 36204 additions and 171 deletions

View File

@ -1,5 +1,155 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1491675277699936625
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1975447176985812107}
- component: {fileID: 3964197053261501791}
- component: {fileID: 3564739092101038129}
m_Layer: 5
m_Name: keyBoardIcon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1975447176985812107
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1491675277699936625}
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_Children: []
m_Father: {fileID: 530650285541145612}
m_RootOrder: 0
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: 52, y: -55}
m_SizeDelta: {x: 70, y: 70}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3964197053261501791
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1491675277699936625}
m_CullTransparentMesh: 1
--- !u!114 &3564739092101038129
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1491675277699936625}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
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_Sprite: {fileID: -2172483134566640915, guid: 5a2e6423b9bc951499a964bbb5b820da, type: 3}
m_Type: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &6730999219310036490
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7154711580899908832}
- component: {fileID: 2167979289728002099}
- component: {fileID: 4826410148995088470}
m_Layer: 5
m_Name: gamepadIcon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &7154711580899908832
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6730999219310036490}
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_Children: []
m_Father: {fileID: 530650285541145612}
m_RootOrder: 1
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: 52, y: -55}
m_SizeDelta: {x: 70, y: 70}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2167979289728002099
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6730999219310036490}
m_CullTransparentMesh: 1
--- !u!114 &4826410148995088470
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6730999219310036490}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
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_Sprite: {fileID: -1573982871852179542, guid: 333692572c859df4a8f79e4e00fa57ec, type: 3}
m_Type: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &8588054010754274200
GameObject:
m_ObjectHideFlags: 0
@ -30,7 +180,8 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2020856588815390102}
- {fileID: 1975447176985812107}
- {fileID: 7154711580899908832}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -69,7 +220,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 3
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -89,105 +240,3 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fdff95fc2112c6040a748eeeeb659204, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &2792429947445164806
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 530650285541145612}
m_Modifications:
- target: {fileID: 4007235920258067707, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_Name
value: Button Prompt
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_SizeDelta.x
value: 161.3906
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_SizeDelta.y
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b0ac1f91007989c439a0246809223e56, type: 3}
--- !u!224 &2020856588815390102 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4236535272234872464, guid: b0ac1f91007989c439a0246809223e56, type: 3}
m_PrefabInstance: {fileID: 2792429947445164806}
m_PrefabAsset: {fileID: 0}

View File

@ -3658,8 +3658,8 @@ RectTransform:
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: 630.29395, y: -365.26}
m_SizeDelta: {x: 705, y: 411.49}
m_AnchoredPosition: {x: 715, y: -340}
m_SizeDelta: {x: 536, y: 464}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1710959632299265877
CanvasRenderer:
@ -4672,6 +4672,7 @@ MonoBehaviour:
dashItem: {fileID: 11400000, guid: 3156de54e455b4348b2a6e79383383b0, type: 2}
nitroItem: {fileID: 11400000, guid: a1c26807795a7ac4f83567455ce978ce, type: 2}
kickItem: {fileID: 11400000, guid: a96dfb1a70e0d0a4f84c15378f38ce99, type: 2}
slideSprite: {fileID: -8570435183877795321, guid: afc7e66828e7a4a49b3e6609a02bd820, type: 3}
grapple: {fileID: 11400000, guid: 3c5f77adbd146274281d636352eb5018, type: 2}
Glide: {fileID: 11400000, guid: 8fe830ac457225a4ab1031a499db94fc, type: 2}
boxHighlight: {fileID: 5070943905975734141}
@ -4848,7 +4849,7 @@ RectTransform:
m_GameObject: {fileID: 7060353136956183304}
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_LocalScale: {x: 1, y: 0.81238, z: 1}
m_Children:
- {fileID: 420218350421039198}
m_Father: {fileID: 5520215189068640225}

View File

@ -2433,6 +2433,7 @@ MonoBehaviour:
dashItem: {fileID: 11400000, guid: 3156de54e455b4348b2a6e79383383b0, type: 2}
nitroItem: {fileID: 11400000, guid: a1c26807795a7ac4f83567455ce978ce, type: 2}
kickItem: {fileID: 11400000, guid: a96dfb1a70e0d0a4f84c15378f38ce99, type: 2}
slide: {fileID: -8570435183877795321, guid: afc7e66828e7a4a49b3e6609a02bd820, type: 3}
grapple: {fileID: 11400000, guid: 3c5f77adbd146274281d636352eb5018, type: 2}
Glide: {fileID: 11400000, guid: 8fe830ac457225a4ab1031a499db94fc, type: 2}
boxHighlight: {fileID: 5887255329340465546}
@ -3742,8 +3743,8 @@ RectTransform:
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: 615, y: -364}
m_SizeDelta: {x: 705, y: 411}
m_AnchoredPosition: {x: 715, y: -340}
m_SizeDelta: {x: 536, y: 464}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2264754566127494481
CanvasRenderer:

View File

@ -0,0 +1,615 @@
fileFormatVersion: 2
guid: c6f5d8af065abec45917dd3b9476a35b
ModelImporter:
serializedVersion: 20200
internalIDToNameTable:
- first:
74: 1827226128182048838
second: Take 001
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors: "Invalid Avatar Rig Configuration. Missing or invalid transform:\n\tRequired
human bone 'Head' not found\n"
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 3
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human:
- boneName: Root_Joint
humanName: Hips
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: L_Hip_Joint
humanName: LeftUpperLeg
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: R_Hip_Joint
humanName: RightUpperLeg
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: L_Knee_Joint
humanName: LeftLowerLeg
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: R_Knee_Joint
humanName: RightLowerLeg
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: L_Ankle_Joint
humanName: LeftFoot
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: R_Ankle_Joint
humanName: RightFoot
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Spine1_Joint
humanName: Spine
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Spine2_Joint
humanName: Chest
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Neck_Joint
humanName: Neck
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: L_Shoulder_Joint
humanName: LeftUpperArm
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: R_Shoulder_Joint
humanName: RightUpperArm
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: L_Elbow_Joint
humanName: LeftLowerArm
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: R_Elbow_Joint
humanName: RightLowerArm
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: L_Wrist_Joint
humanName: LeftHand
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: R_Wrist_Joint
humanName: RightHand
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Spine3_Joint
humanName: UpperChest
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Head_Joint
humanName: Head
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
skeleton:
- name: KR_Maya_Racer_Kick_V01_Gille(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: persp1
parentName: KR_Maya_Racer_Kick_V01_Gille(Clone)
position: {x: 1.6116127, y: 0.93799233, z: 1.1759204}
rotation: {x: 0.13180378, y: -0.80650336, z: 0.19614473, w: 0.5419478}
scale: {x: 0.39370078, y: 0.39370078, z: 0.39370078}
- name: Root_Cntrl
parentName: KR_Maya_Racer_Kick_V01_Gille(Clone)
position: {x: 5.551115e-19, y: 0, z: -0.0006985762}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 0.39370078, y: 0.39370078, z: 0.39370078}
- name: Root_Cntrl 1
parentName: Root_Cntrl
position: {x: -0.0028007783, y: 0.09642501, z: 0.19191477}
rotation: {x: 0.036918666, y: 0.06490098, z: 0.005505022, w: 0.9971934}
scale: {x: 1, y: 1, z: 1}
- name: Spine1_Cntrl
parentName: Root_Cntrl 1
position: {x: -0.00000003710761, y: 0.009354165, z: 0.0016185599}
rotation: {x: 0.036544904, y: 0.030635262, z: 0.0032953706, w: 0.9988569}
scale: {x: 1, y: 1, z: 1}
- name: Spine2_Cntrl
parentName: Spine1_Cntrl
position: {x: 0.00000003710761, y: 0.017423524, z: -0.0018628276}
rotation: {x: 0.07387624, y: -0.0064059393, z: 0.011630271, w: 0.99717903}
scale: {x: 1, y: 1, z: 1}
- name: UpperBody_Cntrl
parentName: Spine2_Cntrl
position: {x: 0.000000009757167, y: 0.020410428, z: -0.0061325897}
rotation: {x: 0, y: -0.001386223, z: -0, w: 0.99999905}
scale: {x: 1, y: 1, z: 1}
- name: Head_Cntrl
parentName: UpperBody_Cntrl
position: {x: 0.000000010440799, y: 0.01617966, z: 0.0048777685}
rotation: {x: -0.13610873, y: -0.12824237, z: 0.004878684, w: 0.9823464}
scale: {x: 1, y: 1, z: 1}
- name: R_Shoulder_Cntrl
parentName: UpperBody_Cntrl
position: {x: 0.017912092, y: -0.0045147436, z: 0.0016982899}
rotation: {x: 0.0286076, y: -0.05335649, z: -0.47852525, w: 0.8759842}
scale: {x: 1, y: 1, z: 1}
- name: R_Elbow_Cntrl
parentName: R_Shoulder_Cntrl
position: {x: 0.026948152, y: 0.0008181272, z: -0.0014693552}
rotation: {x: -0.0042580296, y: -0.124526344, z: -0.033949804, w: 0.9916262}
scale: {x: 1, y: 1, z: 1}
- name: R_Wrist_Cntrl
parentName: R_Elbow_Cntrl
position: {x: 0.027462399, y: -0.00136762, z: 0.000054679207}
rotation: {x: -0.0033104562, y: -0.012565759, z: -0.009637872, w: 0.99986917}
scale: {x: 1, y: 1, z: 1}
- name: L_Shoulder_Cntrl
parentName: UpperBody_Cntrl
position: {x: -0.017912116, y: -0.0045149135, z: 0.0016983201}
rotation: {x: -0.061543845, y: 0.41495162, z: 0.32846564, w: 0.84624934}
scale: {x: 1, y: 1, z: 1}
- name: L_Elbow_Cntrl
parentName: L_Shoulder_Cntrl
position: {x: -0.026948156, y: 0.0008182659, z: -0.0014694682}
rotation: {x: 0.000004932686, y: 0.35426965, z: -0.0000017738104, w: 0.9351433}
scale: {x: 1, y: 1, z: 1}
- name: L_Wrist_Cntrl
parentName: L_Elbow_Cntrl
position: {x: -0.027520567, y: -0.0013677144, z: 0.000054613276}
rotation: {x: -0.047644757, y: 0.06320073, z: -0.08205317, w: 0.9934802}
scale: {x: 1, y: 1, z: 1}
- name: R_Foot_IK_Cntrl
parentName: Root_Cntrl
position: {x: 0.0077768825, y: -0.0045797103, z: 0.20777947}
rotation: {x: -0.00023707403, y: -0.012805045, z: -0.018507516, w: 0.9997467}
scale: {x: 1, y: 1, z: 1}
- name: R_Foot_Cntrl
parentName: R_Foot_IK_Cntrl
position: {x: 0.00021194713, y: 0.008576048, z: -0.007071569}
rotation: {x: 0.019324008, y: -0.005148484, z: -0.00067299244, w: 0.9997998}
scale: {x: 1, y: 1, z: 1}
- name: R_Knee_Pole
parentName: R_Foot_IK_Cntrl
position: {x: 0.011447653, y: -0.1041052, z: 0.22232315}
rotation: {x: 0.07742906, y: 0.027099237, z: -0.023857586, w: 0.9963439}
scale: {x: 1, y: 1, z: 1}
- name: L_Foot_IK_Cntrl
parentName: Root_Cntrl
position: {x: -0.014571887, y: -0.008029657, z: 0.1680823}
rotation: {x: 0.00019726035, y: 0.11557987, z: -0.0016950552, w: 0.99329674}
scale: {x: 1, y: 1, z: 1}
- name: L_Foot_Cntrl
parentName: L_Foot_IK_Cntrl
position: {x: -0.00033917584, y: 0.008576057, z: -0.007071569}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: L_Knee_Pole
parentName: L_Foot_IK_Cntrl
position: {x: -0.013260402, y: 0.057037584, z: 0.053248156}
rotation: {x: 0.1427204, y: -0.064987674, z: 0.037970692, w: 0.98689705}
scale: {x: 1, y: 1, z: 1}
- name: Racer
parentName: KR_Maya_Racer_Kick_V01_Gille(Clone)
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 0.39370078, y: 0.39370078, z: 0.39370078}
- name: Racer_Head
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_NeckJoint
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_Neck
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_Chest
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Shoulder
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Bicep
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Elbow
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Forearm
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Wrist
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Hand
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Shoulder
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Bicep
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Elbow
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Forearm
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Wrist
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Hand
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_Abdomen
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_Pelvis
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Hip
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Thigh
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Knee
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Leg
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Ankle
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_L_Foot
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Hip
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Thigh
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Knee
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Leg
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Ankle
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Racer_R_Foot
parentName: Racer
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: L_Foot_ikHandle
parentName: KR_Maya_Racer_Kick_V01_Gille(Clone)
position: {x: -0.006494656, y: 0.0002177533, z: 0.06279651}
rotation: {x: 0.00019726035, y: 0.11557987, z: -0.0016950552, w: 0.99329674}
scale: {x: 0.39370078, y: 0.39370078, z: 0.39370078}
- name: R_Foot_ikHandle
parentName: KR_Maya_Racer_Kick_V01_Gille(Clone)
position: {x: 0.0033413484, y: 0.0015653505, z: 0.078323334}
rotation: {x: -0.00023707403, y: -0.012805045, z: -0.018507516, w: 0.9997467}
scale: {x: 0.39370078, y: 0.39370078, z: 0.39370078}
- name: Root_Joint
parentName: KR_Maya_Racer_Kick_V01_Gille(Clone)
position: {x: -0.0000000045401976, y: 0.040888775, z: 0.0009502715}
rotation: {x: 0.0000000032408691, y: -0.0000000032408691, z: -0.7071068, w: 0.7071068}
scale: {x: 0.39370275, y: 0.3937027, z: 0.39370075}
- name: L_Hip_Joint
parentName: Root_Joint
position: {x: 0.007059901, y: -0.010374796, z: -0.00014911199}
rotation: {x: -0.007287015, y: -0.007193831, z: 0.9998735, w: 0.012176007}
scale: {x: 1.0000033, y: 1.0000038, z: 0.99999994}
- name: L_Knee_Joint
parentName: L_Hip_Joint
position: {x: -0.045952685, y: 0.00025700318, z: 0.0006438295}
rotation: {x: 0.011862116, y: -0.013930139, z: -0.0072884643, w: 0.99980605}
scale: {x: 0.9999994, y: 0.9999997, z: 1.0000005}
- name: L_Ankle_Joint
parentName: L_Knee_Joint
position: {x: -0.049126707, y: -0.0000000013853408, z: -1.6530637e-10}
rotation: {x: 0.5969355, y: 0.37262893, z: -0.35910347, w: 0.61307466}
scale: {x: 1.0000005, y: 1.0000012, z: 1.0000013}
- name: L_Foot_Joint
parentName: L_Ankle_Joint
position: {x: -0.013133687, y: 0.00050688157, z: -0.0011181225}
rotation: {x: -0.16150007, y: -0.6849102, z: -0.17668255, w: 0.68818533}
scale: {x: 1.0000006, y: 0.9999959, z: 1.0000051}
- name: Spine1_Joint
parentName: Root_Joint
position: {x: -0.009354167, y: -0.00000003710761, z: 0.0016185599}
rotation: {x: -0.9999828, y: 0.0058820844, z: -0.000000004664078, w: 0.0000000045562407}
scale: {x: 1.0000038, y: 1.000003, z: 1.0000079}
- name: Spine2_Joint
parentName: Spine1_Joint
position: {x: -0.017422326, y: 0.00020493152, z: 0.0018628266}
rotation: {x: -0.000000009164699, y: 0.0000000045820405, z: -0.00013530531, w: 1}
scale: {x: 1.000008, y: 1.0000085, z: 1.0000176}
- name: Spine3_Joint
parentName: Spine2_Joint
position: {x: -0.020409077, y: 0.00023457732, z: 0.0061325897}
rotation: {x: 0.9997769, y: -0.02112504, z: 0.000000018135387, w: 0.000000009164515}
scale: {x: 1.0000024, y: 1.000003, z: 0.999998}
- name: Neck_Joint
parentName: Spine3_Joint
position: {x: -0.016171873, y: 0.00049760315, z: 0.0048778043}
rotation: {x: -0.99979985, y: 0.020008, z: -0.000000007698178, w: 0.0000000024975109}
scale: {x: 1.0000008, y: 1.0000008, z: 1.0000018}
- name: Head_Joint
parentName: Neck_Joint
position: {x: -0.015433604, y: 0.00014290374, z: 3.5249582e-18}
rotation: {x: 0.70382565, y: -0.71037275, z: 0.0000000056001914, w: 0.0000000073706423}
scale: {x: 1.0000001, y: 1, z: 1.0000005}
- name: R_Shoulder_Joint
parentName: Spine3_Joint
position: {x: 0.005063495, y: 0.017764768, z: 0.0016982899}
rotation: {x: 0.71029, y: 0.70390916, z: -0.000000009737133, w: 0.0000000030799847}
scale: {x: 0.99999994, y: 1.0000072, z: 1.000007}
- name: R_Elbow_Joint
parentName: R_Shoulder_Joint
position: {x: 0.02695956, y: -0.00023193516, z: 0.0014693573}
rotation: {x: -0.000000022219494, y: 0.00000001849074, z: 0.037150856, w: 0.99930966}
scale: {x: 0.999999, y: 1.0000004, z: 0.99999964}
- name: R_Wrist_Joint
parentName: R_Elbow_Joint
position: {x: 0.027554214, y: -0.000079860205, z: -0.00005617198}
rotation: {x: 0.0000000046570023, y: 0.0000000032250214, z: -0.026288515, w: 0.9996545}
scale: {x: 1.0000004, y: 1.000003, z: 1.0000026}
- name: L_Shoulder_Joint
parentName: Spine3_Joint
position: {x: 0.0039619002, y: -0.018042497, z: 0.0016983201}
rotation: {x: -0.000000012278567, y: 3.402243e-10, z: 0.6883055, w: 0.725421}
scale: {x: 0.9999997, y: 0.99999964, z: 1.0000005}
- name: L_Elbow_Joint
parentName: L_Shoulder_Joint
position: {x: -0.026959574, y: 0.00023238157, z: -0.0014694682}
rotation: {x: -0.000000007002191, y: -0.0000000025028988, z: 0.037150882, w: 0.99930966}
scale: {x: 1.0000011, y: 1.0000001, z: 0.9999985}
- name: L_Wrist_Joint
parentName: L_Elbow_Joint
position: {x: -0.027554417, y: 0.00008062502, z: 0.000054613276}
rotation: {x: 0.0000000031342624, y: 2.4097274e-10, z: -0.026288541, w: 0.9996545}
scale: {x: 1.0000001, y: 1.0000001, z: 0.9999998}
- name: R_Hip_Joint
parentName: Root_Joint
position: {x: 0.0070600584, y: 0.010374819, z: -0.0001491152}
rotation: {x: 0.99987346, y: 0.012176096, z: 0.0072870697, w: 0.007196807}
scale: {x: 1.0000024, y: 1.0000011, z: 1.0000038}
- name: R_Knee_Joint
parentName: R_Hip_Joint
position: {x: 0.045952555, y: -0.00025697923, z: -0.00064405473}
rotation: {x: 0.011862002, y: -0.013930096, z: -0.007288208, w: 0.99980605}
scale: {x: 1.0000004, y: 1.0000012, z: 1.0000019}
- name: R_Ankle_Joint
parentName: R_Knee_Joint
position: {x: 0.049126644, y: 0.0000000013648506, z: -1.5941556e-10}
rotation: {x: -0.36614475, y: 0.56035525, z: -0.6335407, w: -0.38802874}
scale: {x: 1.0000015, y: 1.0000001, z: 1.0000012}
- name: R_Foot_Joint
parentName: R_Ankle_Joint
position: {x: -0.013190908, y: 2.3969716e-17, z: 0}
rotation: {x: 0.6545491, y: -0.14009055, z: 0.7230847, w: 0.17055376}
scale: {x: 1, y: 0.9999986, z: 1.0000014}
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 1
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 3
humanoidOversampling: 1
avatarSetup: 1
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1114,7 +1114,7 @@ AnimatorState:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: IdleKickState
m_Speed: 1
m_Speed: 2
m_CycleOffset: 0
m_Transitions:
- {fileID: 3925824916938458427}
@ -1131,7 +1131,7 @@ AnimatorState:
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 0}
m_Motion: {fileID: 7400000, guid: b2d8d10768dd8984fa96dfed0954a99c, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
@ -3435,11 +3435,11 @@ AnimatorStateTransition:
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionDuration: 1.0707167
m_TransitionOffset: 0
m_ExitTime: 0.75
m_ExitTime: 0.16653056
m_HasExitTime: 0
m_HasFixedDuration: 1
m_HasFixedDuration: 0
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b2d8d10768dd8984fa96dfed0954a99c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -630,6 +630,14 @@ PrefabInstance:
propertyPath: player
value:
objectReference: {fileID: 1129569236}
- target: {fileID: 2240580173848419138, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2240580173848419138, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2890392181480129907, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: m_Camera
value:
@ -754,5 +762,17 @@ PrefabInstance:
propertyPath: runnerBodyModifiers.Array.data[17]
value:
objectReference: {fileID: 1129569243}
- target: {fileID: 7203582894680926279, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7203582894680926279, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7203582894680926279, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f04855a6b3fae4f478846139aa5cf621, type: 3}

View File

@ -242,6 +242,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 5df0ae8b0ae70844496f4608ba6d6747, type: 3}
m_Name:
m_EditorClassIdentifier:
allSprites:
- {fileID: 7136259645469174369, guid: 333692572c859df4a8f79e4e00fa57ec, type: 3}
- {fileID: 2508556123498468650, guid: 333692572c859df4a8f79e4e00fa57ec, type: 3}
- {fileID: -157329293977272682, guid: 333692572c859df4a8f79e4e00fa57ec, type: 3}
- {fileID: -5907697010799613142, guid: 333692572c859df4a8f79e4e00fa57ec, type: 3}
- {fileID: -1157620234444397289, guid: 333692572c859df4a8f79e4e00fa57ec, type: 3}
--- !u!4 &751229572
Transform:
m_ObjectHideFlags: 0

View File

@ -15,6 +15,7 @@ public class CoolDown : MonoBehaviour
public SpecialItem nitroItem;
//regular items with buttons
public Item kickItem;
public Sprite slide;
public Item grapple;
public Item Glide;
public GameObject boxHighlight;

View File

@ -15,7 +15,7 @@ MonoBehaviour:
id: 4
itemName: Strong Kick
description: Your kick will become more powerful.
itemSprite: {fileID: -3112451982961217212, guid: 6752962b9a0f4984fa08cb5a13e7bdfa, type: 3}
itemSprite: {fileID: 719742851597268886, guid: afc7e66828e7a4a49b3e6609a02bd820, type: 3}
maxVelM: 0
minVelM: 0
curVelM: 0

View File

@ -11,6 +11,8 @@ public class GameManager : MonoBehaviour
//public KeyCode glide;
[SerializeField]
public Dictionary<string,KeyCode> bindableActions = new Dictionary<string, KeyCode>();
public Dictionary<KeyCode, Sprite> keyToSpriteDict = new Dictionary<KeyCode, Sprite>();
public Sprite[] allSprites;
private void Awake()
{
@ -44,6 +46,13 @@ public class GameManager : MonoBehaviour
bindableActions.Add("dashKey", dash);
bindableActions.Add("nitroKey", nitro);
bindableActions.Add("grappleKey", grapple);
//dictionary with keycode as key and value as sprites
keyToSpriteDict.Add(KeyCode.Q, allSprites[0]);
keyToSpriteDict.Add(KeyCode.E, allSprites[1]);
keyToSpriteDict.Add(KeyCode.R, allSprites[2]);
keyToSpriteDict.Add(KeyCode.F, allSprites[3]);
keyToSpriteDict.Add(KeyCode.LeftShift, allSprites[4]);
}
// Start is called before the first frame update
void Start()

View File

@ -11,12 +11,9 @@ public class RebindManager : MonoBehaviour
//const array of valid input
readonly KeyCode[] valildKeys = {KeyCode.Q, KeyCode.E, KeyCode.R, KeyCode.F, KeyCode.LeftShift};
//dictionary with keycode as key and value as sprites
public Dictionary<KeyCode, Sprite> keyToSpriteDict = new Dictionary<KeyCode, Sprite>();
//holds ref to all game buttons in scene (should be assigned in editor)
public List<GameObject> allButtonObjects = new List<GameObject>();
//holds ref to all sprites
public Sprite[] allSprites;
//currently waiting for input from user
bool waitingForKey;
@ -32,19 +29,12 @@ public class RebindManager : MonoBehaviour
}
waitingForKey = false;
keyToSpriteDict.Add(KeyCode.Q, allSprites[0]);
keyToSpriteDict.Add(KeyCode.E, allSprites[1]);
keyToSpriteDict.Add(KeyCode.R, allSprites[2]);
keyToSpriteDict.Add(KeyCode.F, allSprites[3]);
keyToSpriteDict.Add(KeyCode.LeftShift, allSprites[4]);
//currently hardcoded
allButtonObjects[0].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["grappleKey"]];
allButtonObjects[1].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["slideKey"]];
allButtonObjects[2].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["kickKey"]];
allButtonObjects[3].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["dashKey"]];
allButtonObjects[4].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["nitroKey"]];
allButtonObjects[0].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["grappleKey"]];
allButtonObjects[1].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["slideKey"]];
allButtonObjects[2].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["kickKey"]];
allButtonObjects[3].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["dashKey"]];
allButtonObjects[4].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["nitroKey"]];
//if any of them are shift, set them to correct dimension
//hardcoded, if anythem are bound to leftshift
@ -174,11 +164,11 @@ public class RebindManager : MonoBehaviour
PlayerPrefs.SetString("grappleKey", GameManager.GM.bindableActions["grappleKey"].ToString());*/
//set all sprites done (probs doesn't set scale back to default)
allButtonObjects[0].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["grappleKey"]];
allButtonObjects[1].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["slideKey"]];
allButtonObjects[2].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["kickKey"]];
allButtonObjects[3].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["dashKey"]];
allButtonObjects[4].GetComponent<Image>().sprite = keyToSpriteDict[GameManager.GM.bindableActions["nitroKey"]];
allButtonObjects[0].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["grappleKey"]];
allButtonObjects[1].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["slideKey"]];
allButtonObjects[2].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["kickKey"]];
allButtonObjects[3].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["dashKey"]];
allButtonObjects[4].GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[GameManager.GM.bindableActions["nitroKey"]];
}
public IEnumerator AssignKey(string keyName)
{
@ -192,7 +182,7 @@ public class RebindManager : MonoBehaviour
case "kick":
GameManager.GM.bindableActions["kickKey"] = newKey;
//replace image of button
currentButtonObject.GetComponent<Image>().sprite = keyToSpriteDict[newKey];
currentButtonObject.GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[newKey];
if (newKey == KeyCode.LeftShift)
{
@ -210,7 +200,7 @@ public class RebindManager : MonoBehaviour
case "slide":
GameManager.GM.bindableActions["slideKey"] = newKey;
//replace image of button
currentButtonObject.GetComponent<Image>().sprite = keyToSpriteDict[newKey];
currentButtonObject.GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[newKey];
//if the new button is LeftShift, resie
if(newKey == KeyCode.LeftShift)
@ -229,7 +219,7 @@ public class RebindManager : MonoBehaviour
case "dash":
GameManager.GM.bindableActions["dashKey"] = newKey;
//replace image of button
currentButtonObject.GetComponent<Image>().sprite = keyToSpriteDict[newKey];
currentButtonObject.GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[newKey];
//if the new button is LeftShift, resize (sprite image requires it)
if (newKey == KeyCode.LeftShift)
@ -248,7 +238,7 @@ public class RebindManager : MonoBehaviour
case "nitro":
GameManager.GM.bindableActions["nitroKey"] = newKey;
//replace image of button
currentButtonObject.GetComponent<Image>().sprite = keyToSpriteDict[newKey];
currentButtonObject.GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[newKey];
//if the new button is LeftShift, resie
if (newKey == KeyCode.LeftShift)
{
@ -266,7 +256,7 @@ public class RebindManager : MonoBehaviour
case "grapple":
GameManager.GM.bindableActions["grappleKey"] = newKey;
//replace image of button
currentButtonObject.GetComponent<Image>().sprite = keyToSpriteDict[newKey];
currentButtonObject.GetComponent<Image>().sprite = GameManager.GM.keyToSpriteDict[newKey];
//if the new button is LeftShift, resie
if (newKey == KeyCode.LeftShift)
{

View File

@ -15,6 +15,7 @@ public class dCoolDown : MonoBehaviour
public SpecialItem nitroItem;
//regular items with buttons
public Item kickItem;
public Sprite slideSprite;
public Item grapple;
public Item Glide;
public GameObject boxHighlight;
@ -101,10 +102,10 @@ public class dCoolDown : MonoBehaviour
temp3.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);
temp3.transform.localRotation = Quaternion.identity;
//due to low number, gonna hardcode this to be first
temp3.transform.localPosition = new Vector3(100, -100);
temp3.transform.localPosition = new Vector3(165, -56);
//set icon to ui icon
temp3.transform.GetComponent<Image>().sprite = kickItem.itemSprite;
temp3.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "F";
//temp3.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "F";
//slide
GameObject temp4 = Instantiate(uiPrebab);
@ -114,10 +115,11 @@ public class dCoolDown : MonoBehaviour
temp4.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);
temp4.transform.localRotation = Quaternion.identity;
//due to low number, gonna hardcode this to be first
temp4.transform.localPosition = new Vector3(-75, -100);
temp4.transform.localPosition = new Vector3(-10, -56);
//set icon to ui icon
//doesn't exists
temp4.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Slide \n Q";
temp4.transform.GetComponent<Image>().sprite = slideSprite;
//temp4.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Slide \n Q";
////check if items are there
//grapple
@ -138,20 +140,20 @@ public class dCoolDown : MonoBehaviour
//increment items
if (itemsAdded == 0)
{
temp.transform.localPosition = new Vector3(-250, -100);
temp.transform.localPosition = new Vector3(-184, -56);
itemsAdded++;
}
//increment items
else if (itemsAdded >= 1)
{
temp.transform.localPosition = new Vector3(100 + posTemp, 100);
temp.transform.localPosition = new Vector3(165 + posTemp, 144);
posTemp -= 175;
itemsAdded++;
}
//set icon to ui icon
temp.transform.GetComponent<Image>().sprite = nitroItem.itemSprite;
//set button control (hard coded)
temp.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Shift";
//temp.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Shift";
}
if (stats.HasDash == true)
{
@ -163,13 +165,13 @@ public class dCoolDown : MonoBehaviour
//increment items
if (itemsAdded == 0)
{
temp2.transform.localPosition = new Vector3(-250, -100);
temp2.transform.localPosition = new Vector3(-184, -56);
itemsAdded++;
}
//increment items
else if (itemsAdded >= 1)
{
temp2.transform.localPosition = new Vector3(100 + posTemp, 100);
temp2.transform.localPosition = new Vector3(165 + posTemp, 144);
posTemp -= 175;
itemsAdded++;
}
@ -177,7 +179,7 @@ public class dCoolDown : MonoBehaviour
//set image
temp2.transform.GetComponent<Image>().sprite = dashItem.itemSprite;
//set button control
temp2.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "R";
//temp2.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "R";
}
@ -192,20 +194,20 @@ public class dCoolDown : MonoBehaviour
//increment items
if (itemsAdded == 0)
{
temp5.transform.localPosition = new Vector3(-250, -100);
temp5.transform.localPosition = new Vector3(-184, -56);
itemsAdded++;
}
//increment items
else if (itemsAdded >= 1)
{
temp5.transform.localPosition = new Vector3(100 + posTemp, 100);
temp5.transform.localPosition = new Vector3(165 + posTemp, 144);
posTemp -= 175;
itemsAdded++;
}
//set icon to ui icon
temp5.transform.GetComponent<Image>().sprite = grapple.itemSprite;
//doesn't exists
temp5.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "E";
//temp5.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "E";
//increment counter
}
//glider
@ -220,20 +222,20 @@ public class dCoolDown : MonoBehaviour
//increment items
if (itemsAdded == 0)
{
temp6.transform.localPosition = new Vector3(-250, -100);
temp6.transform.localPosition = new Vector3(-184, -56);
itemsAdded++;
}
//increment items
else if (itemsAdded >= 1)
{
temp6.transform.localPosition = new Vector3(100 + posTemp, 100);
temp6.transform.localPosition = new Vector3(165 + posTemp, 144);
posTemp -= 175;
itemsAdded++;
}
//set icon to ui icon
temp6.transform.GetComponent<Image>().sprite = Glide.itemSprite;
//doesn't exists
temp6.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Hold Space";
//temp6.transform.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Hold Space";
//increment counter
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 KiB

View File

@ -0,0 +1,156 @@
fileFormatVersion: 2
guid: afc7e66828e7a4a49b3e6609a02bd820
TextureImporter:
internalIDToNameTable:
- first:
213: 719742851597268886
second: KR-UI-KickNSlide-V01-CamO_0
- first:
213: -8570435183877795321
second: KR-UI-KickNSlide-V01-CamO_1
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
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: 2
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
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: KR-UI-KickNSlide-V01-CamO_0
rect:
serializedVersion: 2
x: 148
y: 909
width: 1079
height: 673
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 697f4176f4a0df900800000000000000
internalID: 719742851597268886
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: KR-UI-KickNSlide-V01-CamO_1
rect:
serializedVersion: 2
x: 130
y: 170
width: 1174
height: 565
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 702547ebb92bf0980800000000000000
internalID: -8570435183877795321
vertices: []
indices:
edges: []
weights: []
outline: []
physicsShape: []
bones: []
spriteID: 1f90bece88d3a294981e497e074e6ae7
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -6,32 +6,32 @@ EditorUserSettings:
serializedVersion: 4
m_ConfigSettings:
RecentlyUsedScenePath-0:
value: 22424703114646680e0b0227036c7c021313113e3f66333e243d04
flags: 0
RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c7c1f18030a25203b68252320092a
flags: 0
RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c7c1f18030a25203b68252320092a
flags: 0
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c7000021e17243f66333e243d04
flags: 0
RecentlyUsedScenePath-4:
RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c6f1f05033f2b212d68252320092a
flags: 0
RecentlyUsedScenePath-5:
RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
flags: 0
RecentlyUsedScenePath-6:
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c6f1f05033f2b212d68252320092a
flags: 0
RecentlyUsedScenePath-7:
RecentlyUsedScenePath-4:
value: 22424703114646680e0b0227036c7b151b180b6501273035202c1327d1e33136e7a923e7ee2e26
flags: 0
RecentlyUsedScenePath-8:
RecentlyUsedScenePath-5:
value: 22424703114646680e0b0227036c731f1415016439262f2434
flags: 0
RecentlyUsedScenePath-6:
value: 22424703114646680e0b0227036c7b151b180b650e3a233126281f3fe7c23837e1ec25a7f234362820
flags: 0
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c731f1415016439262f2434
flags: 0
RecentlyUsedScenePath-8:
value: 22424703114646680e0b0227036c7c1f18030a25203b68252320092a
flags: 0
RecentlyUsedScenePath-9:
value: 22424703114646680e0b0227036c6f02131b172b282d347e38271427fb
flags: 0