//Function called when this character is created private void Awake() { //Setting the references to each of the required components this.charRaceTypes = this.GetComponent <RaceTypes>(); this.charInventory = this.GetComponent <Inventory>(); this.charSkills = this.GetComponent <Skills>(); this.charPhysState = this.GetComponent <PhysicalState>(); this.charCombatStats = this.GetComponent <CombatStats>(); this.charActionList = this.GetComponent <ActionList>(); this.charSprites = this.GetComponent <CharacterSprites>(); this.charPerks = this.GetComponent <PerkList>(); }
//Function called when this character is created private void Awake() { //Setting the references to each of the required components this.charRaceTypes = this.GetComponent <RaceTypes>(); this.charEquipment = this.GetComponent <CharacterEquipment>(); this.charSkills = this.GetComponent <Skills>(); this.charPhysState = this.GetComponent <PhysicalState>(); this.charCombatStats = this.GetComponent <CombatStats>(); this.charActionList = this.GetComponent <ActionList>(); this.charModels = this.GetComponent <CharacterModelObjs>(); this.charPerks = this.GetComponent <PerkList>(); if (this.GetComponent <LevelTracker>()) { this.levelTracker = this.GetComponent <LevelTracker>(); } }