Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BattleMuscle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czy
BattleMuscle
Commits
f876149f
Commit
f876149f
authored
May 08, 2021
by
czy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动画混合
parent
b39c10ac
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
2206 additions
and
362 deletions
+2206
-362
Quad Punch.anim
...sets/Art_Assets/Animation/Animation/Fight/Quad Punch.anim
+15
-1
Running3.controller
...Assets/Art_Assets/Animation/Animation/Running3.controller
+288
-7
Male Action Pose(1).fbx
...uscle/Assets/Art_Assets/Animation/Male Action Pose(1).fbx
+0
-0
Male Action Pose(1).fbx.meta
.../Assets/Art_Assets/Animation/Male Action Pose(1).fbx.meta
+99
-0
Running3.fbx.meta
...le/Assets/Art_Assets/Animation/Movement/Running3.fbx.meta
+154
-4
Push.anim
BattleMuscle/Assets/Art_Assets/Animation/Push.anim
+757
-0
Push.anim.meta
BattleMuscle/Assets/Art_Assets/Animation/Push.anim.meta
+8
-0
Level 1.unity
BattleMuscle/Assets/Levels/Level 1.unity
+283
-116
Avatar.meta
BattleMuscle/Assets/My/Avatar.meta
+8
-0
AvatarPunch.mask
BattleMuscle/Assets/My/Avatar/AvatarPunch.mask
+71
-0
AvatarPunch.mask.meta
BattleMuscle/Assets/My/Avatar/AvatarPunch.mask.meta
+8
-0
AttackTrigger.cs
BattleMuscle/Assets/My/Scripts/Player/AttackTrigger.cs
+53
-0
AttackTrigger.cs.meta
BattleMuscle/Assets/My/Scripts/Player/AttackTrigger.cs.meta
+11
-0
IKControl.cs
BattleMuscle/Assets/My/Scripts/Player/IKControl.cs
+31
-0
IKControl.cs.meta
BattleMuscle/Assets/My/Scripts/Player/IKControl.cs.meta
+11
-0
PlayerAttack.cs
BattleMuscle/Assets/My/Scripts/Player/PlayerAttack.cs
+27
-0
PlayerAttack.cs.meta
BattleMuscle/Assets/My/Scripts/Player/PlayerAttack.cs.meta
+11
-0
PlayerMove.cs
BattleMuscle/Assets/My/Scripts/Player/PlayerMove.cs
+1
-14
TestLog.cs
BattleMuscle/Assets/My/Scripts/TestLog.cs
+27
-0
TestLog.cs.meta
BattleMuscle/Assets/My/Scripts/TestLog.cs.meta
+11
-0
ThirdPersonAnimatorController.controller
...aracter/Animator/ThirdPersonAnimatorController.controller
+332
-220
No files found.
BattleMuscle/Assets/Art_Assets/Animation/Animation/Fight/Quad Punch.anim
View file @
f876149f
...
...
@@ -22702,4 +22702,18 @@ AnimationClip:
script
:
{
fileID
:
0
}
m_HasGenericRootTransform
:
0
m_HasMotionFloatCurves
:
0
m_Events
:
[]
m_Events
:
-
time
:
0.2
functionName
:
AttackLeft
data
:
objectReferenceParameter
:
{
fileID
:
0
}
floatParameter
:
0
intParameter
:
0
messageOptions
:
0
-
time
:
0.46666667
functionName
:
AttackRight
data
:
objectReferenceParameter
:
{
fileID
:
0
}
floatParameter
:
0
intParameter
:
0
messageOptions
:
0
BattleMuscle/Assets/Art_Assets/Animation/Animation/Running3.controller
View file @
f876149f
This diff is collapsed.
Click to expand it.
BattleMuscle/Assets/Art_Assets/Animation/Male Action Pose(1).fbx
0 → 100644
View file @
f876149f
File added
BattleMuscle/Assets/Art_Assets/Animation/Male Action Pose(1).fbx.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: b0b4d46c432bd3a45a0f7c3c42fe1a3b
ModelImporter:
serializedVersion: 19300
internalIDToNameTable:
- first:
74: -203655887218126122
second: mixamo.com
externalObjects: {}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
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: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/Art_Assets/Animation/Movement/Running3.fbx.meta
View file @
f876149f
...
...
@@ -35,7 +35,7 @@ ModelImporter:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression:
1
animationCompression:
3
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
...
...
@@ -200,7 +200,157 @@ ModelImporter:
humanDescription:
serializedVersion: 3
human: []
skeleton: []
skeleton:
- name: Running3(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: metarig.066
parentName: Running3(Clone)
position: {x: 0.44184446, y: -0.80192184, z: -1.0345271}
rotation: {x: -0.6727753, y: -0.030183766, z: -0.005134059, w: 0.73921305}
scale: {x: 14.920991, y: 14.920991, z: 14.920991}
- name: spine
parentName: metarig.066
position: {x: 0.0016177213, y: 0.012030646, z: 0.7355293}
rotation: {x: 0.7204835, y: 0.030458532, z: 0.0031137154, w: 0.6927959}
scale: {x: 1.0000001, y: 1.0000001, z: 1}
- name: spine.001
parentName: spine
position: {x: 9.7144515e-17, y: 0.10589448, z: 0.000000003259629}
rotation: {x: -0.0659366, y: -0, z: 0.0000000037252907, w: 0.99782383}
scale: {x: 0.9999999, y: 0.99999994, z: 1.0000001}
- name: spine.003
parentName: spine.001
position: {x: 4.0335272e-17, y: 0.5536554, z: 2.3283064e-10}
rotation: {x: -0.08261309, y: -0.000000024101078, z: 0.0000000021535675, w: 0.99658173}
scale: {x: 1, y: 0.9999999, z: 0.9999999}
- name: spine.004
parentName: spine.003
position: {x: -4.453873e-16, y: 0.368106, z: -0.000000011175871}
rotation: {x: 0.10668708, y: -0.00000004236261, z: -0.000000012681854, w: 0.99429274}
scale: {x: 1.0000001, y: 0.99999994, z: 0.9999998}
- name: spine.006
parentName: spine.004
position: {x: -1.9164292e-15, y: 0.104163855, z: 0.0000000037252903}
rotation: {x: -0.0010895132, y: 0.0000000017841442, z: 0.0000000020120219, w: 0.99999946}
scale: {x: 1, y: 0.9999998, z: 1}
- name: shoulder.L
parentName: spine.003
position: {x: -0.10941442, y: 0.3130092, z: 0.071540564}
rotation: {x: 0.04515603, y: -0.073182054, z: 0.69803303, w: 0.7108835}
scale: {x: 1.0000004, y: 1, z: 0.9999999}
- name: upper_arm.L
parentName: shoulder.L
position: {x: -0.088331, y: 0.3212678, z: -0.05548396}
rotation: {x: 0.04496607, y: 0.002669542, z: -0.024937432, w: 0.9986736}
scale: {x: 1.0000002, y: 1.0000005, z: 0.99999994}
- name: forearm.L
parentName: upper_arm.L
position: {x: 0.000000019533841, y: 0.47237083, z: 0.000000004831236}
rotation: {x: 0.011590009, y: -0.0022488697, z: 0.024370736, w: 0.9996333}
scale: {x: 0.99999994, y: 0.99999946, z: 1.0000006}
- name: hand.L
parentName: forearm.L
position: {x: 0.00000011080646, y: 0.5536617, z: -0.000000026077032}
rotation: {x: -0.02266937, y: 0.0013036777, z: 0.00759664, w: 0.9997133}
scale: {x: 1.0000002, y: 1.0000005, z: 1.0000002}
- name: hand.L.002
parentName: hand.L
position: {x: -0.028985824, y: 0.07405004, z: 0.09248986}
rotation: {x: 0.16182904, y: 0.061684527, z: 0.19045432, w: 0.9662989}
scale: {x: 1.0000006, y: 1.0000005, z: 1.0000002}
- name: hand.L.005
parentName: hand.L
position: {x: -0.0062126247, y: 0.16576354, z: 0.0019837162}
rotation: {x: 0.021041272, y: 0.014111578, z: 0.07549232, w: 0.9968245}
scale: {x: 1, y: 1.0000011, z: 1.0000002}
- name: hand.L.009
parentName: hand.L.005
position: {x: -0.0000000106998055, y: 0.065333046, z: -0.0000000037252903}
rotation: {x: -0.037563924, y: 0.031366214, z: 0.19795127, w: 0.9789895}
scale: {x: 1.0000004, y: 1.0000004, z: 1.0000004}
- name: shoulder.R
parentName: spine.003
position: {x: 0.109414436, y: 0.3130092, z: 0.07154054}
rotation: {x: 0.04515596, y: 0.073182434, z: -0.698033, w: 0.7108834}
scale: {x: 1.0000001, y: 0.9999999, z: 1.0000001}
- name: upper_arm.R
parentName: shoulder.R
position: {x: 0.08833074, y: 0.32126796, z: -0.0554839}
rotation: {x: 0.044966355, y: -0.002669759, z: 0.024937382, w: 0.9986737}
scale: {x: 1.0000002, y: 1.0000002, z: 0.9999999}
- name: forearm.R
parentName: upper_arm.R
position: {x: 0.000000052925422, y: 0.4723708, z: -5.820766e-11}
rotation: {x: 0.011589686, y: 0.0022490565, z: -0.024370708, w: 0.9996333}
scale: {x: 1.0000005, y: 1, z: 1.0000005}
- name: hand.R
parentName: forearm.R
position: {x: -0.00000012078014, y: 0.5536617, z: 0.000000035390258}
rotation: {x: -0.022669302, y: -0.0013037227, z: -0.007596802, w: 0.9997133}
scale: {x: 1.0000001, y: 1.0000001, z: 0.99999994}
- name: hand.R.002
parentName: hand.R
position: {x: 0.028985912, y: 0.07404998, z: 0.09248984}
rotation: {x: 0.16182895, y: -0.061684437, z: -0.19045419, w: 0.96629894}
scale: {x: 1.0000002, y: 1.0000001, z: 1.0000002}
- name: hand.R.005
parentName: hand.R
position: {x: 0.0062126685, y: 0.16576357, z: 0.001983706}
rotation: {x: 0.021042248, y: -0.014111502, z: -0.075494826, w: 0.99682426}
scale: {x: 0.99999946, y: 1.0000008, z: 1.0000001}
- name: hand.R.009
parentName: hand.R.005
position: {x: 0.00000012819478, y: 0.06533291, z: 0.000000040978193}
rotation: {x: 0.037563827, y: 0.03136627, z: 0.19795135, w: -0.97898954}
scale: {x: 1, y: 0.99999964, z: 1.0000001}
- name: thigh.L
parentName: spine
position: {x: -0.11603223, y: 0.039476145, z: -0.0113842115}
rotation: {x: -0.00039999382, y: 0.077685185, z: 0.99695176, w: 0.0072145876}
scale: {x: 0.9999999, y: 1.0000001, z: 0.99999726}
- name: shin.L
parentName: thigh.L
position: {x: 0.0000000028842586, y: 0.3407846, z: 2.6921043e-10}
rotation: {x: -0.025322588, y: 0.00004707754, z: -0.0156073375, w: 0.9995575}
scale: {x: 1, y: 0.9999973, z: 1.0000027}
- name: foot.L
parentName: shin.L
position: {x: -0.000000003825697, y: 0.29997143, z: 5.966285e-10}
rotation: {x: 0.35332257, y: -0.016266668, z: -0.04699198, w: 0.934179}
scale: {x: 1.0000004, y: 1.0000008, z: 0.99999905}
- name: toe.L
parentName: foot.L
position: {x: 1.4506285e-10, y: 0.07727814, z: 0.0000000037252903}
rotation: {x: 0.27658296, y: -0.40988234, z: -0.25398913, w: 0.83125687}
scale: {x: 1.0000014, y: 0.9999996, z: 1.0000002}
- name: thigh.R
parentName: spine
position: {x: 0.11603223, y: 0.039476145, z: -0.011384219}
rotation: {x: 0.00040011574, y: 0.0776852, z: 0.99695176, w: -0.007214574}
scale: {x: 1.0000001, y: 1.0000002, z: 0.99999714}
- name: shin.R
parentName: thigh.R
position: {x: 0.000000010041433, y: 0.34078464, z: -1.70985e-10}
rotation: {x: -0.025322622, y: -0.00004698767, z: 0.01560734, w: 0.9995575}
scale: {x: 1.0000006, y: 0.99999857, z: 1.0000018}
- name: foot.R
parentName: shin.R
position: {x: 0.000000019656513, y: 0.29997146, z: 0.0000000015570549}
rotation: {x: 0.35332242, y: 0.016266676, z: 0.046991978, w: 0.934179}
scale: {x: 1.0000006, y: 1.0000001, z: 1.0000004}
- name: toe.R
parentName: foot.R
position: {x: 0.000000019412711, y: 0.077278145, z: 9.313226e-10}
rotation: {x: 0.276583, y: 0.40988225, z: 0.25398925, w: 0.8312568}
scale: {x: 1.0000002, y: 1.0000004, z: 1}
- name: Cartoonish.059
parentName: Running3(Clone)
position: {x: 0.024139404, y: 0.006264806, z: 0.5691635}
rotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
scale: {x: 2.5844297, y: 2.5844297, z: 2.5844297}
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
...
...
@@ -211,13 +361,13 @@ ModelImporter:
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot:
0
hasExtraRoot:
1
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup:
0
avatarSetup:
2
additionalBone: 0
userData:
assetBundleName:
...
...
BattleMuscle/Assets/Art_Assets/Animation/Push.anim
0 → 100644
View file @
f876149f
This diff is collapsed.
Click to expand it.
BattleMuscle/Assets/Art_Assets/Animation/Push.anim.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: a83e0d41eb2e07b499aadfa1041bf9f7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/Levels/Level 1.unity
View file @
f876149f
This diff is collapsed.
Click to expand it.
BattleMuscle/Assets/My/Avatar.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: f30252c5a58305344a2aa5fa5f295790
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/My/Avatar/AvatarPunch.mask
0 → 100644
View file @
f876149f
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!319
&31900000
AvatarMask
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_Name
:
AvatarPunch
m_Mask
:
00000000000000000000000000000000000000000100000001000000010000000100000000000000000000000100000001000000
m_Elements
:
-
m_Path
:
m_Weight
:
1
-
m_Path
:
Cartoonish.059
m_Weight
:
1
-
m_Path
:
metarig.066
m_Weight
:
1
-
m_Path
:
metarig.066/spine
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.L
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.L/upper_arm.L
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.L/upper_arm.L/forearm.L
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.L/upper_arm.L/forearm.L/hand.L
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.L/upper_arm.L/forearm.L/hand.L/hand.L.002
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.L/upper_arm.L/forearm.L/hand.L/hand.L.005
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.L/upper_arm.L/forearm.L/hand.L/hand.L.005/hand.L.009
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.R
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.R/upper_arm.R
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.R/upper_arm.R/forearm.R
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.R/upper_arm.R/forearm.R/hand.R
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.R/upper_arm.R/forearm.R/hand.R/hand.R.002
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.R/upper_arm.R/forearm.R/hand.R/hand.R.005
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/shoulder.R/upper_arm.R/forearm.R/hand.R/hand.R.005/hand.R.009
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/spine.004
m_Weight
:
1
-
m_Path
:
metarig.066/spine/spine.001/spine.003/spine.004/spine.006
m_Weight
:
1
-
m_Path
:
metarig.066/spine/thigh.L
m_Weight
:
0
-
m_Path
:
metarig.066/spine/thigh.L/shin.L
m_Weight
:
1
-
m_Path
:
metarig.066/spine/thigh.L/shin.L/foot.L
m_Weight
:
1
-
m_Path
:
metarig.066/spine/thigh.L/shin.L/foot.L/toe.L
m_Weight
:
1
-
m_Path
:
metarig.066/spine/thigh.R
m_Weight
:
0
-
m_Path
:
metarig.066/spine/thigh.R/shin.R
m_Weight
:
1
-
m_Path
:
metarig.066/spine/thigh.R/shin.R/foot.R
m_Weight
:
1
-
m_Path
:
metarig.066/spine/thigh.R/shin.R/foot.R/toe.R
m_Weight
:
1
BattleMuscle/Assets/My/Avatar/AvatarPunch.mask.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: 7d695edeeef36694fab8146719467e29
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/My/Scripts/Player/AttackTrigger.cs
0 → 100644
View file @
f876149f
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
AttackTrigger
:
MonoBehaviour
{
private
bool
Punch
=
false
;
private
bool
Push
=
false
;
public
Animator
animator
;
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
private
void
OnTriggerEnter
(
Collider
other
)
{
print
(
other
.
name
);
if
(
other
.
tag
==
"Competitor"
)
{
Punch
=
true
;
animator
.
SetBool
(
"Punch"
,
Punch
);
animator
.
SetLayerWeight
(
1
,
1
);
}
else
if
(
other
.
tag
==
"Wall"
)
{
Push
=
true
;
animator
.
SetBool
(
"Push"
,
Push
);
animator
.
SetLayerWeight
(
1
,
1
);
}
}
private
void
OnTriggerExit
(
Collider
other
)
{
print
(
other
.
name
);
if
(
other
.
tag
==
"Wall"
)
{
Punch
=
false
;
animator
.
SetBool
(
"Punch"
,
Punch
);
animator
.
SetLayerWeight
(
1
,
0
);
}
else
if
(
other
.
tag
==
"Competitor"
)
{
Push
=
false
;
animator
.
SetBool
(
"Push"
,
Push
);
animator
.
SetLayerWeight
(
1
,
1
);
}
}
}
BattleMuscle/Assets/My/Scripts/Player/AttackTrigger.cs.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: a7429fdbb6a4df14b83adb2c158eb8e1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/My/Scripts/Player/IKControl.cs
0 → 100644
View file @
f876149f
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
IKControl
:
MonoBehaviour
{
public
Transform
target
;
public
Animator
animator
;
public
bool
isPushWall
=
false
;
public
float
PostionW
=
1
;
public
float
RotationW
=
1
;
private
void
Start
()
{
//animator = GetComponentInChildren<Animator>();
//print(animator);
}
//unity自带的ik方法,开启ik通道会执行
void
OnAnimatorIK
(
int
layerIndex
)
{
print
(
"OnAnimatorIK,layerIndex:"
+
layerIndex
+
" :"
+
gameObject
.
name
);
//设置左手骨骼的权重
animator
.
SetIKPositionWeight
(
AvatarIKGoal
.
RightHand
,
PostionW
);
animator
.
SetIKRotationWeight
(
AvatarIKGoal
.
RightHand
,
RotationW
);
//设置左手骨骼的ik目标为胶囊体的坐标和旋转
animator
.
SetIKPosition
(
AvatarIKGoal
.
RightHand
,
target
.
position
);
animator
.
SetIKRotation
(
AvatarIKGoal
.
RightHand
,
target
.
rotation
);
}
}
BattleMuscle/Assets/My/Scripts/Player/IKControl.cs.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: 84605fc7bb63e6040b832ff4b233d3d2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/My/Scripts/Player/PlayerAttack.cs
0 → 100644
View file @
f876149f
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
PlayerAttack
:
MonoBehaviour
{
// Start is called before the first frame update
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
public
void
AttackLeft
()
{
print
(
gameObject
.
name
+
":左手攻击"
);
}
public
void
AttackRight
()
{
print
(
gameObject
.
name
+
":右手攻击"
);
}
}
BattleMuscle/Assets/My/Scripts/Player/PlayerAttack.cs.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: ad0d5b425a2c7f1479396c0567dc9d29
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/My/Scripts/Player/PlayerMove.cs
View file @
f876149f
...
...
@@ -63,7 +63,6 @@ public class PlayerMove : MonoBehaviour
[
HideInInspector
]
public
float
MoveSpeed
=
0.0f
;
private
bool
Grounded
=
false
;
private
bool
Punch
=
false
;
//最大速度等级
private
int
MaxSpeedLevel
=
15
;
//1-15 分为 1-5 6-10 11-15
...
...
@@ -221,18 +220,7 @@ public class PlayerMove : MonoBehaviour
return
;
}
if
(
Input
.
GetKey
(
KeyCode
.
Space
))
{
Punch
=
true
;
}
else
{
Punch
=
false
;
}
//else
//{
// Punch = false;
//}
RaycastHit
hit
;
...
...
@@ -362,7 +350,6 @@ public class PlayerMove : MonoBehaviour
Grounded
=
characterController
.
isGrounded
;
//print("MoveSpeed:" + MoveSpeed+ "characterController.velocity:" + characterController.velocity);
animator
.
SetFloat
(
"MoveSpeed"
,
MoveSpeed
);
animator
.
SetBool
(
"Punch"
,
Punch
);
animator
.
SetBool
(
"Grounded"
,
Grounded
);
}
...
...
BattleMuscle/Assets/My/Scripts/TestLog.cs
0 → 100644
View file @
f876149f
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
TestLog
:
MonoBehaviour
{
// Start is called before the first frame update
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
public
void
Show
()
{
print
(
"----------------"
);
}
public
void
Show
(
string
info
)
{
print
(
"------"
+
info
+
"----------"
);
}
}
BattleMuscle/Assets/My/Scripts/TestLog.cs.meta
0 → 100644
View file @
f876149f
fileFormatVersion: 2
guid: c5a1d3dac03807b44bdcaf59e7ba4fd6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
BattleMuscle/Assets/Standard Assets/Characters/ThirdPersonCharacter/Animator/ThirdPersonAnimatorController.controller
View file @
f876149f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment