Exemple #1
0
    //******************************************************

    //******************************************************
    public void HandleDead()
    {
        GameOverCtrl.instance.setActive(false);
        transform.position = CheckPoint.GetActivePosition();
        health             = maxHealth;
        tonalliAmount      = maxtonalli;
        isJumping          = false;
        canMove            = true;
        isAlive            = true;
        sr.enabled         = true;
        box2D.enabled      = true;
        rd.bodyType        = RigidbodyType2D.Dynamic;
        healthBar.UpDateHealthBar(1);
        healthBar.UpDateTonalliBar(1);
    }