Ejemplo n.º 1
0
 public void OnSyllableClickPlay(SyllableElement syllable)
 {
     if (sounds != null)
     {
         sounds[1].SetSound(mediaController.GetSyllableAudio(syllable), 0);
     }
 }
Ejemplo n.º 2
0
    public AudioClip GetSyllableAudio(SyllableElement s)
    {
        if (retrievedSyllableAudios.ContainsKey(s))
        {
            return(retrievedSyllableAudios[s]);
        }

        return(UnknownAudio);
    }
Ejemplo n.º 3
0
    public void ReceiveSyllable(SyllableElement syllable)
    {
        //foreach (LXInputField g in myCharInputs)
        //{
        //    g.transform.parent.GetComponent<Image>().color = originalColor;
        //}


        UnlockAllInputs();

        myCharInputs.Clear();

        thisSyllable = syllable;
        Debug.Log("Syllable received!!!");

        ResetAtributes();

        float scaleY = Screen.height / InputZoneController.inicialScreenHeight;

        handle.transform.position = new Vector2(transform.position.x, transform.position.y - 35f * scaleY);
        handle.transform.GetComponent <RectTransform>().sizeDelta = new Vector2(rectTransform.sizeDelta.x, 15f * scaleY);
        handle.transform.SetAsFirstSibling();
    }
Ejemplo n.º 4
0
 public void OnSyllableHit(SyllableElement hitSyllable)
 {
     gM.OnSyllableClickPlay(hitSyllable);
 }
Ejemplo n.º 5
0
 public void SetSyllableElementSlot(SyllableElement s)
 {
     syllable = s;
 }