Exemple #1
0
    // initialise the audion clip so that other game objects that call these sounds on start will have them
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(this.gameObject);
        }
        else
        {
            Destroy(this.gameObject);
            return;
        }

        // if any sound file name changes, they are all listed here and only need to change the below

        instruction_language = "Instructions\\Kriol";

        instructionClips                      = new AudioClip[total_clip_no];
        instructionClips[HELLO]               = Resources.Load <AudioClip>(instruction_language + "_hello");
        instructionClips[WHATS_NAME]          = Resources.Load <AudioClip>(instruction_language + "_Wanim_name");
        instructionClips[WHATS_LANGUAGE]      = Resources.Load <AudioClip>(instruction_language + "_wanim_langus");
        instructionClips[WHATS_ACTIVITY]      = Resources.Load <AudioClip>(instruction_language + "_Start_game");
        instructionClips[THANKS]              = Resources.Load <AudioClip>(instruction_language + "_Thank_you_bye");
        instructionClips[GO_LONG]             = Resources.Load <AudioClip>(instruction_language + "_press_go_long");
        instructionClips[MEMEORY_INSTRUCTION] = Resources.Load <AudioClip>(instruction_language + "_instructions_memory");
        instructionClips[RECALL_INSTRUCTION]  = Resources.Load <AudioClip>(instruction_language + "_instructions_recall");
        instructionClips[CARD_MATCH]          = Resources.Load <AudioClip>(instruction_language + "_Gudwan");
        instructionClips[TRY_AGAIN]           = Resources.Load <AudioClip>(instruction_language + "_try_again");
        instructionClips[REPEAT]              = Resources.Load <AudioClip>(instruction_language + "_repeat");
    }
    // Use this for initialization
    void Start()
    {
        //get the game object that has all the instruction audio clips
        instrSound  = GameObject.Find("InstructionSound").GetComponent <InstructionSound>();
        SoundSource = GetComponent <AudioSource>();

        PlayInstructionSound();
    }
Exemple #3
0
    // Use this for initialization
    void Start()
    {
        //get the game object that has all the instruction audio clips
        instrSound  = GameObject.Find("InstructionSound").GetComponent <InstructionSound>();
        soundSource = GetComponent <AudioSource>();

        soundSource.PlayOneShot(instrSound.GetInstructionAudioClip(InstructionSound.THANKS));
    }
    // Use this for initialization
    void Start()
    {
        //get the game object that has all the instruction audio clips
        instr_sound  = GameObject.Find("InstructionSound").GetComponent <InstructionSound>();
        sound_source = GetComponent <AudioSource>();

        //change the audio source to here
        PlayInstructionSound();
    }
    // Use this for initialization
    void Start()
    {
        //get the game object that has all the instruction audio clips
        GameObject isgo = GameObject.Find("InstructionSound");

        instr_sound   = isgo.GetComponent <InstructionSound>();
        _sound_source = GetComponent <AudioSource>();

        PlayInstructionSound();
    }
Exemple #6
0
    // Use this for initialization

    void Start()
    {
        instr_sound = GameObject.Find("InstructionSound").GetComponent <InstructionSound>();
#if UNITY_ANDROID && !UNITY_EDITOR
        Debug.Log("Started Wifi manager");
        //ConnectWifi(wifi_ssid, wifi_pwd);

        string config_ssid = ReadConfigSSID();
        string config_pwd  = "";
        if (config_ssid == "\"NgukurrOpie\"")
        {
            config_pwd = "\"21157233\"";
        }
        else if (config_ssid == "\"NgukurrOpie2\"")
        {
            config_pwd = "\"22232113\"";
        }
        else if (config_ssid == "\"Ngopie_4\"")
        {
            config_pwd = "\"88494807\"";
        }
        ConnectWifi(config_ssid, config_pwd);
#endif
    }
Exemple #7
0
 // Use this for initialization
 void Start()
 {
     instrSound  = GameObject.Find("InstructionSound").GetComponent <InstructionSound>();
     SoundSource = GetComponent <AudioSource>();
 }