void Start() { weaponSystem = GetComponent <WeaponSystem>(); healthSystem = GetComponent <HealthSystem>(); specialAbility = GetComponent <SpecialAbilities>(); SetUpEnemyStats(); }
void Start() { weaponSystem = GetComponent <WeaponSystem>(); character = GetComponent <Character>(); abilities = GetComponent <SpecialAbilities>(); animator = GetComponent <Animator>(); healthSystem = GetComponent <HealthSystem>(); RegisterForMouseEvents(); }
private void Awake() { PlayerPrefs.DeleteAll(); playerXp = GetComponent <PlayerXP>(); weaponSystem = GetComponent <WeaponSystem>(); healthSystem = GetComponent <HealthSystem>(); specialAbility = GetComponent <SpecialAbilities>(); uidDisplay = GameObject.Find("Game Canvas/PlayerStatsDisplay"); PlayerIsAlive = true; if (PlayerPrefs.HasKey(levelKey)) { LoadStatsFromPlayerPrefs(); } SortPlayerStats(); healthSystem.SethealthBarText(); specialAbility.SetEergyBarText(); }