public void ShowOptions() { Console.WriteLine("a. " + Option1.ToString()); Console.WriteLine("b. " + Option2.ToString()); Console.WriteLine("c. " + Option3.ToString()); Console.WriteLine("d. " + Option4.ToString()); }
// Start is called before the first frame update void Start() { Text1 = Option1.GetComponentInChildren <TextMeshProUGUI>(); Text2 = Option2.GetComponentInChildren <TextMeshProUGUI>(); Text3 = Option3.GetComponentInChildren <TextMeshProUGUI>(); Text4 = Option4.GetComponentInChildren <TextMeshProUGUI>(); Option1.onClick.AddListener(() => Button1(input)); Option2.onClick.AddListener(() => Button2(input)); Option3.onClick.AddListener(() => Button3(input)); Option4.onClick.AddListener(() => Button4(input)); Money = 100; Space = 60; Military = 60; Alliance = 60; Events.Add(new Event("4. April 1949", "NATO has formed", "USA has formed an anti soviet alliance, called NATO, what is our response?", "Ask to Join Nato?", "Start making your own", "Your proposal was rejected", "Creation of the Warsaw pact has begun")); Events.Add(new Event("4. October 1957", "Into Space!", "The Sputnik 1 project has been a huge success, and everyone looks to the USSR", "With such success the project must escalate", "We have achieved what we needed", "Project funding increased", "Project funding decreased")); TimeStopped = false; Timer.currentYear = 1949; History.text = ""; }