void Start() { FingerGestures.OnFingerTap += FingerGestures_OnFingerTap; bool noError; noError = PListManager.ParsePListFile(gameData.text, ref gameDataTable); if (noError) { allPositions = (Hashtable)gameDataTable["positions"]; availableAnimals = (ArrayList)gameDataTable["availableAnimals"]; } else { //next game AGGameState.loadNextGameInLoop(AGGameIndex.k_MemoryAnimal); } dataManager = new MADataManager(AGGameIndex.k_MemoryAnimal, 0, progression.text); ickyAnimations = ickyModel.GetComponent <MAIckyAnimations>(); nextQuestion(); }
void Start() { FingerGestures.OnFingerTap += FingerGestures_OnFingerTap; bool noError; noError = PListManager.ParsePListFile(gameData.text, ref gameDataTable); if(noError) { allPositions = (Hashtable) gameDataTable["positions"]; availableAnimals = (ArrayList) gameDataTable["availableAnimals"]; } else { //next game AGGameState.loadNextGameInLoop(AGGameIndex.k_MemoryAnimal); } dataManager = new MADataManager(AGGameIndex.k_MemoryAnimal, 0, progression.text); ickyAnimations = ickyModel.GetComponent<MAIckyAnimations>(); nextQuestion(); }