Beispiel #1
0
    void GemSwapper_Swapped(object sender, GemSwapEventArgs e)
    {
        Debug.Log("PuzzleGameController Swapped Event");
        GemSwapData swap = new GemSwapData(e.indexA, e.indexB, e.isValid);

        e.isValid = PresentationMatchChecker.Instance.CheckForValidSwap(swap);
        PuzzlePresentationController.SwapTwoGems(e.indexA, e.indexB, e.isValid);
    }