public void TestLevel() { if (Main.Instance.LevelDefinition.levelSettings != null && Main.Instance.LevelDefinition.levelSettings.exampleSolutionCode != null) { PMWrapper.mainCode = Main.Instance.LevelDefinition.levelSettings.exampleSolutionCode; } PMWrapper.speedMultiplier = 1; PMWrapper.RunCode(); }
// UITooltip Tooltip; public void OnRunCodeButtownClick() { if (PMWrapper.IsCompilerRunning) { UISingleton.instance.walker.SetWalkerUserPaused(!PMWrapper.IsCompilerUserPaused); } else { PMWrapper.RunCode(); } }