Ejemplo n.º 1
0
    // function called when user starts the first swipe touch (the first piece)
    public override bool useAsFirstSwipe(JSFGamePiece gp, bool isBoardCheck)
    {
        // isBoardCheck == true if the board is checking for legal swipes (use it in if-else when needed!)
        // return true to allow SwipeManager to use this piece as a starting swipe
        // return false to NOT allow SwipeManager to use this piece as a starting swipe

        JSFSwipeManager.allowAnyColorOnce();
        return(true);
    }
Ejemplo n.º 2
0
    // function called when user starts the first swipe touch (the first piece)
    public override bool useAsFirstSwipe(JSFGamePiece gp, bool isBoardCheck)
    {
        // isBoardCheck == true if the board is checking for legal swipes (use it in if-else when needed!)
        // return true to allow SwipeManager to use this piece as a starting swipe
        // return false to NOT allow SwipeManager to use this piece as a starting swipe

        // below is the default behaviour
        // if it's not a special... set the swipeColor to the slotNum; use as first swipe
        JSFSwipeManager.allowAnyColorOnce();         // rainbow swipe the next piece..
        return(true);
    }
Ejemplo n.º 3
0
 public override void onSwipeAdded(JSFGamePiece gp, bool isBoardCheck)
 {
     JSFSwipeManager.allowAnyColorOnce();         // this is the rainbow piece after all!
 }