Attack animation, colliders, triggering
This commit is contained in:
1 parent
3e631899ea
commit
e61fcb78cf
94 files changed
+142319
-25861
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using Code.Infrastructure.Generators;
|
||||
using Code.OfficeGame.BattleMode.HitBoxes;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.OfficeGame.BattleMode.Actions.Attacks
|
||||
{
|
||||
[Config("Configs/AttackAction", true)]
|
||||
[CreateAssetMenu(fileName = "AttackActionConfig", menuName = "Configs/AttackAction")]
|
||||
public class AttackActionConfig : ScriptableObject
|
||||
{
|
||||
public BattleActionType ActionType;
|
||||
|
||||
public AnimationClip AnimationClip;
|
||||
|
||||
public int StateHash => Animator.StringToHash(AnimationClip.name);
|
||||
|
||||
public int TotalFrames;
|
||||
|
||||
public int HitboxStartFrame;
|
||||
|
||||
public int HitboxEndFrame;
|
||||
|
||||
public HitBoxPartType AttackingBodyPart;
|
||||
|
||||
public int Damage;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user