void ApplyCheckPointData(int index) { CheckPointsManager.Instance.Init(index); if (index != -1) { Vector2 respawnPos = CheckPointsManager.Instance.GetPosition(index); hero.WarpPos(respawnPos.x, respawnPos.y); } }