Example #1
0
 private void Awake()
 {
     mover         = GetComponent <PlayerMover>();
     fighter       = GetComponent <PlayerFighter>();
     thrower       = GetComponent <PlayerThrower>();
     weaponHandler = GetComponentInChildren <WeaponHandler>();
     stashSystem   = FindObjectOfType <WeaponStashSystem>();
 }
Example #2
0
 private void Start()
 {
     Instance = this;
     healthBar.SetMaxHealth(maxHealth);
     currentHealth = maxHealth;
 }