Exemplo n.º 1
0
    private void Awake()
    {
        quitButton = GameObject.Find("QuitButton").GetComponent <Button>();
        gameInfo   = GameObject.Find("GameInfo").GetComponent <GameInfo>();
        gameData   = GameObject.Find("GameData").GetComponent <GameDataScript>();
        mps        = GameObject.Find("MemoryPlaySound").GetComponent <MemoryPlaySound>();
        language   = gameInfo.Language;
        //Retrieve ordering of the images
        ordering = gameData.Ordering;

        images = gameInfo.Images;
        sounds = gameInfo.Sounds;
        words  = gameInfo.Words;
    }
Exemplo n.º 2
0
    void Start()
    {
        //Find the objects containing Game Data and Profile Info
        gameData = GameObject.Find("GameData").GetComponent <GameDataScript>();

        //Retrieve ordering of the images
        ordering = gameData.Ordering;
#if UNITY_ANDROID && !UNITY_EDITOR
        //Opie looks up with NEUTRAL emotion
        Opie.instance().head().set_eye_type(EyeType.NEUTRAL, Opie.Head.instant_action());
        Opie.instance().head().set_linked_pose_and_eye_position(0.5f, 0.5f, Opie.Head.transition_action());
#endif
        StateMachineInit();
        CardsSetup();
        mps = GameObject.Find("MemoryPlaySound").GetComponent <MemoryPlaySound>();



        //UnityEngine.SceneManagement.SceneManager.LoadScene("Recall");
    }