Files
Scampz/Assets/Scripts/Animation/LevelChanger.cs
Zenny b907cdcd9b Bug Fixes from v1.0
- Fix lighting on desert
- Move dialogue radius to correct spot
- Disable movement while talking to NPCs
- Move desert spawn point a little bit
2022-08-31 22:56:09 -07:00

28 lines
449 B
C#

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");
}
}
}