Exemplo n.º 1
0
 // 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);
 }
Exemplo n.º 2
0
    // 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);
    }