SSLR/SSLR/Assets/Scripts/NextButton.cs

11 lines
267 B
C#

using UnityEngine;
public class NextButton : MonoBehaviour
{
public void CallNext()
{
var npcs = NpcManager.instance.currentNpcs;
var randomnpc = npcs[Random.Range(0, npcs.Count)];
randomnpc.GetComponent<NpcMovementRework>().Called();
}
}