예제 #1
0
    private void onTouch(GameObject go)
    {
        if (this.children == null || this.children.Length <= 1)
        {
            return;
        }
        int length = this.children.Length;
        int i      = 0;

        while (i < length)
        {
            if (this.children[i].name == go.name)
            {
                if (i == this.currentIndex)
                {
                    return;
                }
                this.Active(i);
                DelegateProxy.PlayUIAudio(15);
                if (this.touchEvent != null)
                {
                    this.touchEvent(i, this.children[i]);
                }
                break;
            }
            else
            {
                i++;
            }
        }
    }