Exemplo n.º 1
0
    public void DinoDead()
    {
        dead = true;

        animator.SetTrigger("Dead");
        animator.SetBool("Alive", false);

        //Count dinos killed by player
        fossilSystem.countDinoKills(startingHealth);

        //this.gameObject.SetActive(false);
        Destroy(this.gameObject, vanichingTime); // enlever le dino du jeu
    }