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; }
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; }