攻击持续时间的修改

This commit is contained in:
GL 2024-12-27 16:50:35 +08:00
parent 634435716a
commit 7ed11a4406
5 changed files with 15 additions and 7 deletions

View File

@ -371,6 +371,10 @@ MonoBehaviour:
attackCollider: {fileID: 0}
attackColliderBox: {fileID: 7445357650989261112}
attackRangeSprite: {fileID: 4735534361623519927}
AttackStayTime: 2
isAttack: 1
flag: 0
timer: 0
--- !u!61 &7445357650989261112
BoxCollider2D:
m_ObjectHideFlags: 0

View File

@ -66,8 +66,8 @@ AnimatorStateTransition:
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: Attack
- m_ConditionMode: 6
m_ConditionEvent: State
m_EventTreshold: 1
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: -2194801018154674215}
@ -228,7 +228,10 @@ AnimatorStateTransition:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions: []
m_Conditions:
- m_ConditionMode: 6
m_ConditionEvent: State
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: -8831474942015023954}
m_Solo: 0
@ -238,8 +241,8 @@ AnimatorStateTransition:
m_TransitionDuration: 0
m_TransitionOffset: 0
m_ExitTime: 4
m_HasExitTime: 1
m_HasFixedDuration: 1
m_HasExitTime: 0
m_HasFixedDuration: 0
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1

@ -1 +1 @@
Subproject commit 8632b38362f1ed4bed3247a2fbaa14993a745f6a
Subproject commit 7d53694eb5a1302dad487dfa09580b1a1720da88

View File

@ -42,6 +42,7 @@ public class SkillUp : Fun
set
{
attackDuration = value;
attack.AttackStayTime *= (1 + attackDuration);
}
}
[HideInInspector][Header("攻击子弹数量加成")] public int numberOfBullets = 0;

View File

@ -17,7 +17,7 @@ public class enemy : Role
set
{
harmNumber = value;
Debug.Log(enemyId + "×ÜÉ˺¦" + harmNumber);
//Debug.Log(enemyId + "×ÜÉ˺¦" + harmNumber);
}
}