Example #1
0
 static void Main(string[] args)
 {
     if ((0 < args.Length) && args[0].Equals("debug"))
     {
         //-- Print default debug stuff; looks dirty
         DebugTests();
     }
     else
     {
         //-- Interactively test the priority queue implementation
         InteractiveInterface.Start(args);
     }
 }
Example #2
0
                void Start()
                {
                    InteractiveInterface interactiveInterface = GetComponent <InteractiveInterface>();

                    interactiveInterface.beforeRunningInteraction.AddListener(delegate() {
                        Map map = GetMap();
                        if (map != null)
                        {
                            map.Pause(freezeAlsoAnimations);
                        }
                    });
                    interactiveInterface.afterRunningInteraction.AddListener(delegate()
                    {
                        Map map = GetMap();
                        if (map != null)
                        {
                            map.Resume();
                        }
                    });
                }