using UnityEngine; namespace DefaultNamespace { public enum QuestionAnswer { YES, NO, NO_YES, } public static class QuestionAnswerExtensions { public static string ToRandomString(this QuestionAnswer answer) { if (LevelLoader.Instance.GlobalModifier == "HORSE") { return answer switch { QuestionAnswer.YES => "Neigh", QuestionAnswer.NO => "Heigh", QuestionAnswer.NO_YES => "Hmph" }; } string[] options = answer switch { QuestionAnswer.YES => new[] { "Yes", "Absolutely", "Affirmative", "Definitely", "Of course", "Sure", }, QuestionAnswer.NO => new[] { "No", "Absolutely not", "Negative", "Definitely not", "Nope", "Not at all", }, QuestionAnswer.NO_YES => new[] { "I cannot answer that question", "I'm not sure", "I don't know", }, _ => new[] { answer.ToString() } }; return options[Random.Range(0, options.Length)]; } } }