Example #1
0
        void Start()
        {
            weaponSystem   = GetComponent <WeaponSystem>();
            healthSystem   = GetComponent <HealthSystem>();
            specialAbility = GetComponent <SpecialAbilities>();

            SetUpEnemyStats();
        }
Example #2
0
 void Start()
 {
     weaponSystem = GetComponent <WeaponSystem>();
     character    = GetComponent <Character>();
     abilities    = GetComponent <SpecialAbilities>();
     animator     = GetComponent <Animator>();
     healthSystem = GetComponent <HealthSystem>();
     RegisterForMouseEvents();
 }
Example #3
0
        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();
        }