예제 #1
0
 public static void print(List <DrivePath> drivePaths)
 {
     if (enabled)
     {
         Debug.Log("[");
         DrivePath prev = null;
         foreach (DrivePath curr in drivePaths)
         {
             if (prev == null)
             {
                 DebugFn.print(curr.startVector);
             }
             DebugFn.print(curr.endVector);
             prev = curr;
         }
         Debug.Log("]");
     }
 }
예제 #2
0
    public void reportChange()
    {
        checkObjectives();
        bool haveWon  = checkCombos(winCombos, "win");
        bool haveLost = checkCombos(loseCombos, "lose");

/*		if (haveLost && haveWon) {
 *                      // Won AND lost same frame... do what?
 *          Game.instance.gameEnd("win", this);
 *                      DebugFn.print ("You WON & LOST!");
 *              } else */
        if (haveWon)
        {
            // Won the level!
            Game.instance.gameEnd("win", this);
            DebugFn.print("You WON!");
        }
        else if (haveLost)
        {
            // Won the level!
            Game.instance.gameEnd("lose", this);
            DebugFn.print("You Lost!");
        }
    }
예제 #3
0
 public static void print(Pos pos)
 {
     DebugFn.print(Game.getCameraPosition(pos));
 }