2021-08-23 00:37:37 +02:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
[CreateAssetMenu(fileName = "Attack", menuName = "Scriptable Objects/Attack", order = 2)]
|
|
|
|
|
public class AttackSO : ScriptableObject
|
|
|
|
|
{
|
2021-09-06 12:18:42 +02:00
|
|
|
[Header("Main")]
|
2021-08-23 00:37:37 +02:00
|
|
|
public float travelDistance;
|
2021-09-05 22:55:57 +02:00
|
|
|
public float hitStun;
|
2021-09-06 01:46:04 +02:00
|
|
|
public float knockback;
|
2021-09-28 21:09:42 +02:00
|
|
|
public Vector2 knockbackDirection;
|
2021-09-08 20:13:48 +02:00
|
|
|
public float selfKnockback;
|
2021-09-08 19:54:17 +02:00
|
|
|
public bool canGuardBreak;
|
2021-09-16 08:12:42 +02:00
|
|
|
public bool isAirAttack;
|
2021-09-06 12:18:42 +02:00
|
|
|
[Header("Sounds")]
|
2021-08-23 00:37:37 +02:00
|
|
|
public string attackSound;
|
|
|
|
|
public string impactSound;
|
2021-09-06 12:18:42 +02:00
|
|
|
[Header("Effects")]
|
2021-09-06 11:33:49 +02:00
|
|
|
public GameObject hitEffect;
|
|
|
|
|
public Vector2 hitEffectPosition;
|
2021-09-06 12:18:42 +02:00
|
|
|
public float hitEffectRotation;
|
|
|
|
|
public GameObject hurtEffect;
|
|
|
|
|
public Vector2 hurtEffectPosition;
|
|
|
|
|
public float hurtEffectRotation;
|
2021-08-23 00:37:37 +02:00
|
|
|
}
|