Ejemplo n.º 1
0
    // Use this for initialization
    public void click(string details)
    {
        foreach (AudioSource audioS in allAudioSources)
        {
            audioS.Stop();
        }
        audioSource.PlayOneShot(impact, 1F);

        audioSource.PlayDelayed(2f);
        text.text = details;
        anim.SetBool("IsTouched", true);

        for (int i = 0; i < otheranimis.Length; i++)
        {
            otheranimis [i].SetBool("IsTouched", false);
        }
        GameObject Instantiate = this.gameObject;

        gamecontroll.OpenPanel(Instantiate, i);
    }