]> git.lizzy.rs Git - SuperMouseAdventure.git/blob - 2DGame/Assets/Scripts/Maus/CheckpointManager.cs
Checkpoint-System v0.1
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Maus / CheckpointManager.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4
5 public class CheckpointManager : MonoBehaviour
6 {
7     private static CheckpointManager instance;
8     public Vector2 lastCheckpointPos;
9
10     void Awake()
11     {
12         if (instance == null)
13         {
14             instance = this;
15             DontDestroyOnLoad(instance);
16         }
17         else
18         {
19             Destroy(gameObject);
20         }
21     }
22 }