Beispiel #1
0
        void Start()
        {
            // Set the handler on m_demo to DisplayUnityChoice. This handler will be fired by an event generated when ChoiceDisplay.Execute() is called.
            m_demo.AddChoicePresenterHandler(DisplayUnityChoice);

            // Find and store the text display so we can change the text later.
            m_textDisplay = GameObject.Find("TextDisplay");
        }
Beispiel #2
0
        private static void ScheduledConsoleChoice()
        {
            Console.WriteLine("Starting scheduled demo1 (simple choice-based).");

            Demo1_Scheduled demo = new Demo1_Scheduled();

            demo.AddChoicePresenterHandler(EventHandlers_ChoicePresenter.Execute_DisplayConsoleChoice);

            while (demo.Blackboard.Changed)
            {
                demo.Blackboard.ResetChanged();
                demo.Controller.Execute();
            }
        }