Death Square Added
This commit is contained in:
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using UI;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Level
|
||||
{
|
||||
@@ -38,6 +39,8 @@ namespace Level
|
||||
private Level currentLevel = null;
|
||||
public Level CurrentLevel => currentLevel;
|
||||
|
||||
public UnityEvent OnLevelChanged = new UnityEvent();
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (_instance == null)
|
||||
@@ -92,6 +95,7 @@ namespace Level
|
||||
Player.GetComponent<Rigidbody2D>().velocity = Vector2.zero;
|
||||
|
||||
UIManager.Instance.CloseAllCanvases();
|
||||
OnLevelChanged?.Invoke();
|
||||
}
|
||||
|
||||
public void DisableAllLevels()
|
||||
|
Reference in New Issue
Block a user