GAME DEVING AT 3 AM CHALLENGE (I ALMOST DIED)
This commit is contained in:
parent
c2a71d5188
commit
9930aba85d
3428 changed files with 186147 additions and 2298 deletions
|
|
@ -2,6 +2,23 @@ using UnityEngine;
|
|||
|
||||
public class LevelSwitcher : MonoBehaviour
|
||||
{
|
||||
#region Statication
|
||||
|
||||
public static LevelSwitcher instance;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (instance != null && instance != this)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
return;
|
||||
}
|
||||
instance = this;
|
||||
}
|
||||
|
||||
#endregion
|
||||
public int[] stages; //uhh....
|
||||
public int currentStage;
|
||||
public void ChangeLevel()
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue