Пример #1
0
    void FingerGestures_OnFingerTap(int fingerIndex, Vector2 fingerPos, int tapCount)
    {
        GameObject selection = PickObject(fingerPos);

        //Debug.Log(selection.name);
        if (selection == null)
        {
            return;
        }

        if (selection.name.StartsWith("Icon1"))
        {
            AGGameState.startGame(AGGameIndex.k_FishWorld_HideNSeek);
        }

        if (selection.name.StartsWith("Icon2"))
        {
            showAlertWithImage("unlockpopup_objectbasedmath");
        }

        if (selection.name.StartsWith("Icon3"))
        {
            showAlertWithImage("unlockpopup_countingupto10");
        }

        if (selection.name.StartsWith("Icon4"))
        {
            showAlertWithImage("unlockpopup_senseofquantity");
        }
    }
Пример #2
0
    void FingerGestures_OnFingerTap(int fingerIndex, Vector2 fingerPos, int tapCount)
    {
        GameObject selection = PickObject(fingerPos);

        //Debug.Log(selection.name);
        if (selection == null)
        {
            return;
        }

        if (selection.name.StartsWith("Icon"))
        {
            BeeWorldMenuIcon icon = selection.GetComponent <BeeWorldMenuIcon>();
            AGGameState.startGame(icon.gameIndex);
        }
    }
Пример #3
0
    public void goToGame()
    {
        AGGameIndex index = (AGGameIndex)_currentGameIndex;

        AGGameState.startGame(index);
    }