예제 #1
0
    // 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();
        }
    }
예제 #2
0
    public void ChangeState(STATESELECT _stateSelect)
    {
        stateSelect = _stateSelect;

        subStatusChange.NotifyObs(this);
        subAllStatusChange.NotifyObs(this);
    }