Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
    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();
    }