Пример #1
0
        protected void CreateDialog(List <Character> speakers, string conversationTag, float minInterval)
        {
            if (dialogLastSpoken.TryGetValue(conversationTag, out double lastTime))
            {
                if (Timing.TotalTime - lastTime < minInterval)
                {
                    return;
                }
            }

            CrewManager.AddConversation(
                NPCConversation.CreateRandom(speakers, new List <string>()
            {
                conversationTag
            }));
            dialogLastSpoken[conversationTag] = Timing.TotalTime;
        }