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-12-28 15:30:35 +01:00
|
|
|
public Vector2 travelDirection;
|
2021-09-05 22:55:57 +02:00
|
|
|
public float hitStun;
|
2022-01-02 13:33:28 +01:00
|
|
|
[Range(0.0f, 16.0f)]
|
2021-09-06 01:46:04 +02:00
|
|
|
public float knockback;
|
2021-09-28 21:09:42 +02:00
|
|
|
public Vector2 knockbackDirection;
|
2022-01-02 13:33:28 +01:00
|
|
|
[Range(0.0f, 1.0f)]
|
2021-11-14 22:39:39 +01:00
|
|
|
public float knockbackDuration;
|
2021-10-20 16:26:26 +02:00
|
|
|
public AttackTypeEnum attackTypeEnum;
|
2021-12-23 15:05:41 +01:00
|
|
|
[Range(0.0f, 1.0f)]
|
|
|
|
|
public float hitstop;
|
2021-09-16 08:12:42 +02:00
|
|
|
public bool isAirAttack;
|
2022-01-01 12:10:49 +01:00
|
|
|
public bool isProjectile;
|
2021-12-20 03:27:06 +01:00
|
|
|
public bool causesKnockdown;
|
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
|
|
|
}
|