using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// Component that makes a duder a duder. /// Manages class, skills, level, attrs, and AI. /// public class HeroUnit : MonoBehaviour { [SerializeField] private new string name; [SerializeField] private HeroClassSO class_; [SerializeField] private long level; [SerializeField] private long xp; [SerializeField] private HeroAttributesSO attrs; [SerializeField] private HeroPartySO party; private void OnEnable() { // NOTE(zeph): Party is mandatory. If none is set, we want an exception. party.Add(this); } private void OnDisable() { party.Remove(this); } }