コード例 #1
0
 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();
 }
コード例 #2
0
        // UITooltip Tooltip;

        public void OnRunCodeButtownClick()
        {
            if (PMWrapper.IsCompilerRunning)
            {
                UISingleton.instance.walker.SetWalkerUserPaused(!PMWrapper.IsCompilerUserPaused);
            }
            else
            {
                PMWrapper.RunCode();
            }
        }