feature-duder #9
@ -3,6 +3,6 @@
|
||||
[CreateAssetMenu(fileName = "HeroClass", menuName = "Hero Class")]
|
||||
public class HeroClassSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private string Name;
|
||||
[SerializeField] private string Help;
|
||||
[SerializeField] private new string name;
|
||||
[SerializeField] private string help;
|
||||
}
|
||||
|
@ -8,9 +8,9 @@
|
||||
/// </summary>
|
||||
public class Heroism : MonoBehaviour
|
||||
zephyr marked this conversation as resolved
Outdated
|
||||
{
|
||||
[SerializeField] private string Name;
|
||||
[SerializeField] private HeroClassSO Class;
|
||||
[SerializeField] private long Level;
|
||||
[SerializeField] private long XP;
|
||||
[SerializeField] private HeroAttributesSO Attrs;
|
||||
[SerializeField] private new string name;
|
||||
[SerializeField] private HeroClassSO class_;
|
||||
[SerializeField] private long level;
|
||||
[SerializeField] private long xp;
|
||||
zephyr marked this conversation as resolved
Outdated
madxmike
commented
dont change this now, but it would be nice in the future if we could encapsulate the concepts of level and xp in a single class. It might contain a XP -> level curve and then we can jsut .addXp and it will figure everything out. Would be useful if we have anywhere else that needs the same concepts dont change this now, but it would be nice in the future if we could encapsulate the concepts of level and xp in a single class. It might contain a XP -> level curve and then we can jsut .addXp and it will figure everything out. Would be useful if we have anywhere else that needs the same concepts
|
||||
[SerializeField] private HeroAttributesSO attrs;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user
Could we name this like
HeroUnit
or somethingHeroUnit
EnemyUnit