- Fix lighting on desert - Move dialogue radius to correct spot - Disable movement while talking to NPCs - Move desert spawn point a little bit
28 lines
449 B
C#
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");
|
|
}
|
|
}
|
|
}
|