2021-08-20 11:16:49 +02:00
|
|
|
using UnityEngine;
|
2021-10-27 13:28:19 +02:00
|
|
|
using UnityEngine.U2D.Animation;
|
2021-08-20 11:16:49 +02:00
|
|
|
|
|
|
|
|
[CreateAssetMenu(fileName = "Player Stats", menuName = "Scriptable Objects/Player Stat", order = 1)]
|
|
|
|
|
public class PlayerStatsSO : ScriptableObject
|
|
|
|
|
{
|
2021-10-21 23:17:10 +02:00
|
|
|
[Header("Main")]
|
2021-10-27 15:06:53 +02:00
|
|
|
public int characterIndex;
|
2021-10-21 13:30:20 +02:00
|
|
|
public Sprite[] portraits;
|
2021-10-27 13:28:19 +02:00
|
|
|
public SpriteLibraryAsset[] spriteLibraryAssets;
|
2021-10-27 15:06:53 +02:00
|
|
|
public RuntimeAnimatorController runtimeAnimatorController;
|
2021-10-02 02:21:06 +02:00
|
|
|
public string characterName;
|
2021-10-21 23:17:10 +02:00
|
|
|
public float maxHealth = 3;
|
|
|
|
|
[Header("Movement")]
|
2021-09-30 00:57:38 +02:00
|
|
|
public float walkSpeed = 3;
|
|
|
|
|
public float runSpeed = 5;
|
2021-08-20 11:16:49 +02:00
|
|
|
public float jumpForce = 2;
|
2021-09-25 21:18:24 +02:00
|
|
|
public float dashForce = 5;
|
2021-12-30 14:28:24 +01:00
|
|
|
public bool canDoubleJump = true;
|
2021-10-21 23:17:10 +02:00
|
|
|
[Header("Arcana")]
|
|
|
|
|
public float maxArcana = 2;
|
|
|
|
|
public float arcanaRecharge = 1;
|
2021-12-11 18:37:11 +01:00
|
|
|
[Header("Moves")]
|
|
|
|
|
public AttackSO m2L;
|
|
|
|
|
public AttackSO m4L;
|
|
|
|
|
public AttackSO m5L;
|
|
|
|
|
public AttackSO m6L;
|
|
|
|
|
public AttackSO jumpL;
|
|
|
|
|
public ArcanaSO arcana;
|
2021-08-20 11:16:49 +02:00
|
|
|
}
|