浏览代码

Tweaked protagonist attack

Now moving very slowly while attacking
/main
Ciro Continisio 4 年前
当前提交
95e2789c
共有 6 个文件被更改,包括 27 次插入28 次删除
  1. 8
      UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef.controller
  2. 26
      UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChefAttackMask.mask
  3. 14
      UOP1_Project/Assets/Scripts/Characters/Protagonist.cs
  4. 7
      UOP1_Project/Assets/Addons/DOTween/Editor/DOTweenEditor.sln.meta
  5. 0
      /UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChefAttackMask.mask.meta
  6. 0
      /UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChefAttackMask.mask

8
UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef.controller


m_ConditionEvent: IsAttacking
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 1062338921458421844}
m_DstState: {fileID: 0}
m_Solo: 0
m_Mute: 0
m_IsExit: 0

m_ConditionEvent: IsAttacking
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 8824853613331383409}
m_DstState: {fileID: 0}
m_Solo: 0
m_Mute: 0
m_IsExit: 0

- m_ConditionMode: 1
m_ConditionEvent: IsAttacking
m_EventTreshold: 0
m_DstStateMachine: {fileID: -5902505208054257955}
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 0}
m_Solo: 0
m_Mute: 0

- m_ConditionMode: 1
m_ConditionEvent: IsAttacking
m_EventTreshold: 0
m_DstStateMachine: {fileID: -5902505208054257955}
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 0}
m_Solo: 0
m_Mute: 0

26
UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChefAttackMask.mask


m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: PigChef attack avatar mask
m_Mask: 00000000010000000100000000000000000000000100000001000000010000000100000000000000000000000100000001000000
m_Name: PigChefAttackMask
m_Mask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
m_Elements:
- m_Path:
m_Weight: 1

- m_Path: Root/Hips/LeftApron
m_Weight: 0
- m_Path: Root/Hips/LeftApron/LeftApronEnd
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
m_Weight: 1
m_Weight: 0
- m_Path: Root/Hips/Spine/Spine1
m_Weight: 1
- m_Path: Root/Hips/Spine/Spine1/ApronKnot

14
UOP1_Project/Assets/Scripts/Characters/Protagonist.cs


//Accelerate/decelerate
targetSpeed = Mathf.Clamp01(_inputVector.magnitude);
// This is used to set the speed to the maximum if holding the Shift key,
// to allow keyboard players to "run"
if (targetSpeed > 0f && isRunning)
targetSpeed = 1f;
if (targetSpeed > 0f)
{
// This is used to set the speed to the maximum if holding the Shift key,
// to allow keyboard players to "run"
if(isRunning)
targetSpeed = 1f;
if (attackInput)
targetSpeed = .05f;
}
targetSpeed = Mathf.Lerp(_previousSpeed, targetSpeed, Time.deltaTime * 4f);
movementInput = adjustedMovement.normalized * targetSpeed;

7
UOP1_Project/Assets/Addons/DOTween/Editor/DOTweenEditor.sln.meta


fileFormatVersion: 2
guid: 60d46e2a5f9bc4b1fb039c7d39b2b60b
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

/UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef attack avatar mask.mask.meta → /UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChefAttackMask.mask.meta

/UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef attack avatar mask.mask → /UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChefAttackMask.mask

正在加载...
取消
保存