Ejemplo n.º 1
0
    void Start()
    {
        a = GetComponent <AudioSource>();
        GameObject go = GameObject.Find("wood_scen");

        floor = go.GetComponent <FloorTom>();
    }
Ejemplo n.º 2
0
        private void Drums_KeyPress(object sender, KeyPressEventArgs e)
        {
            switch (e.KeyChar.ToString())
            {
            case "1":
                Bass.PerformClick();
                break;

            case "2":
                Snare.PerformClick();
                break;

            case "3":
                FloorTom.PerformClick();
                break;

            case "4":
                Tom1.PerformClick();
                break;

            case "5":
                Tom2.PerformClick();
                break;

            case "6":
                Crash.PerformClick();
                break;

            case "0":
                Hats.PerformClick();
                break;
            }
        }