// Start is called before the first frame update void Start() { mouseActive = false; hasRespawned = false; killCount = 0; playerXp = GetComponent <CharacterExperience>(); statsUI = StatsUI.instance; currentHealth = getMaxHealth(); healthBar.SetMaxHealth(getMaxHealth()); xpBar.SetXp(playerXp.xp); }
// Start is called before the first frame update void Start() { // Instantiate the boolean values attack = false; mouseActive = false; hasRespawned = false; // Set up health bar and XP bar killCount = 0; playerXp = GetComponent <CharacterExperience>(); statsUI = StatsUI.instance; currentHealth = getMaxHealth(); healthBar.SetMaxHealth(getMaxHealth()); xpBar.SetXp(playerXp.xp); }