// Sets up fundamental class connections for the Chr public void Start() { if (bStarted == false) { bStarted = true; nMaxSkillsLeft = 1; InitSkillSlots(); stateSelect = STATESELECT.IDLE; pnMaxHealth = new Property <int>(100); nCurHealth = pnMaxHealth.Get(); pnArmour = new Property <int>(0); pnPower = new Property <int>(0); pnDefense = new Property <int>(0); SetStateReadiness(new StateFatigued(this)); view = GetComponent <ViewChr>(); view.Start(); } }
public void ChangeState(STATESELECT _stateSelect) { stateSelect = _stateSelect; subStatusChange.NotifyObs(this); subAllStatusChange.NotifyObs(this); }