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

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