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"); } }
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); } }
public void goToGame() { AGGameIndex index = (AGGameIndex)_currentGameIndex; AGGameState.startGame(index); }