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