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); } }
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(); } }); }