コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (this.text == null)
        {
            return;
        }

        string connectionText = this.pingPong ? "connected" : "disconnected";
        string text           = $@"Controller {connectionText}
" + input.DisplayString();

        this.text.text = text;
    }