First part worked fine, though I had to use:
Code: Select all
DialogueManager.Instance.interruptActiveConversations = true;
Any ideas? Other info I can provide you with?
Thanks again!
Code: Select all
DialogueManager.Instance.interruptActiveConversations = true;
Code: Select all
using UnityEngine;
public class PauseDuringConversations : MonoBehaviour
{
private int numActiveConversations = 0;
void OnConversationStart(Transform actor)
{
numActiveConversations++;
Time.timeScale = 0;
}
void OnConversationEnd(Transform actor)
{
numActiveConversations--;
if (numActiveConversations == 0)
{
Time.timeScale = 1;
}
}
}[code]