2022-02-26 13:03:26 +03:00

18 lines
360 B
C#

namespace Level
{
using UnityEngine;
public class LevelEnd : MonoBehaviour
{
private Level level = null;
private void Awake() => level = GetComponentInParent<Level>();
public void EndLevel()
{
level.EndLevel();
LevelManager.Instance.SwitchToLevel(level.LevelNumber + 1);
}
}
}