36 lines
1021 B
C#
36 lines
1021 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace OctoberStudio
|
|
{
|
|
[System.Serializable]
|
|
public class CharacterData
|
|
{
|
|
[SerializeField] protected string name;
|
|
public string Name => name;
|
|
|
|
[SerializeField] protected int cost;
|
|
public int Cost => cost;
|
|
|
|
[SerializeField] protected Sprite icon;
|
|
public Sprite Icon => icon;
|
|
|
|
[SerializeField] protected GameObject prefab;
|
|
public GameObject Prefab => prefab;
|
|
|
|
[Space]
|
|
[SerializeField] protected bool hasStartingAbility = false;
|
|
public bool HasStartingAbility => hasStartingAbility;
|
|
|
|
[SerializeField] protected AbilityType startingAbility;
|
|
public AbilityType StartingAbility => startingAbility;
|
|
|
|
[Space]
|
|
[SerializeField, Min(1)] protected float baseHP;
|
|
public float BaseHP => baseHP;
|
|
|
|
[SerializeField, Min(1f)] protected float baseDamage;
|
|
public float BaseDamage => baseDamage;
|
|
}
|
|
} |