Example #1
0
    public void Respawn(int health)
    {
        Debug.Log("Respawn");
        player.ResetGrapple();
        Rigidbody2D playerRB = player.GetPlayerRB();

        playerRB.position = lastCheckpoint.GetPlayerPosition();
        player.SetCurrenthealth(health);
        playerRB.velocity = Vector3.zero;
    }