using UnityEngine; namespace Scampz.GameJam { public class LevelChanger : MonoBehaviour { [SerializeField] private Animator animator; public static LevelChanger Instance; private void Awake() { if (Instance != null && Instance != this) { DestroyImmediate(this); return; } Instance = this; } public void FadeAnimation() { animator.SetTrigger("Start"); } } }