You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
37 lines
1009 B
C#
37 lines
1009 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "Attack", menuName = "Scriptable Objects/Attack", order = 2)]
|
|
public class AttackSO : ScriptableObject
|
|
{
|
|
[Header("Main")]
|
|
public float travelDistance;
|
|
public Vector2 travelDirection;
|
|
public float hitStun;
|
|
public float blockStun;
|
|
[Range(0.0f, 16.0f)]
|
|
public float knockback;
|
|
public Vector2 knockbackDirection;
|
|
[Range(0.0f, 1.0f)]
|
|
public float knockbackDuration;
|
|
public AttackTypeEnum attackTypeEnum;
|
|
[Range(0.0f, 1.0f)]
|
|
public float hitstop;
|
|
public bool isAirAttack;
|
|
public bool isProjectile;
|
|
public bool isArcana;
|
|
public bool causesKnockdown;
|
|
[Header("Sounds")]
|
|
public string attackSound;
|
|
public string impactSound;
|
|
[Header("Effects")]
|
|
public GameObject hitEffect;
|
|
public Vector2 hitEffectPosition;
|
|
public float hitEffectRotation;
|
|
public GameObject hurtEffect;
|
|
public Vector2 hurtEffectPosition;
|
|
public float hurtEffectRotation;
|
|
[Header("Framedata")]
|
|
public int startUpFrames;
|
|
public int activeFrames;
|
|
public int recoveryFrames;
|
|
} |