Exemple #1
0
    public stat Health, Sanity, Strength, Agility, Intelligence, Willpower, Perception, Charisma; // Stats that are accessed through other scripts. E.g. GetComponent<rpgStats>().health.Add(-2);

    private void Awake()                                                                          // All stat values set to their starting values.
    {
        Health.SetValue(StartHealth);
        Sanity.SetValue(StartSanity);
        Strength.SetValue(StartStrength);
        Agility.SetValue(StartAgility);
        Intelligence.SetValue(StartIntelligence);
        Willpower.SetValue(StartWillpower);
        Perception.SetValue(StartPerception);
        Charisma.SetValue(StartCharisma);
    }