Exemplo n.º 1
0
    public void OnClickButton()
    {
        // Textコンポーネント郡を取得します。
        var components = this.gameObject.GetComponentsInChildren <Text>();

        // テキストを文字の状態によって変更するようにします。
        components[0].text = components[0].text == "Pause" ? "Play" : "Pause";

        isStop = vpManager.getStatus();
        if (!isStop)
        {
            for (int i = 0; i < ViewCount; i++)
            {
                Vp[i].Pause();
            }
        }
        else
        {
            for (int i = 0; i < ViewCount; i++)
            {
                Vp[i].Play();
            }
        }
        vpManager.setStatus(!isStop);
    }