コード例 #1
0
    public void RpcAddScoreBoard()
    {
        GameObject t = GameObject.FindGameObjectWithTag("Ready");

        if (t != null)
        {
            VRStandardAssets.ShootingGallery.ShootingTarget shootingTarget = t.GetComponent <VRStandardAssets.ShootingGallery.ShootingTarget>();
            if (shootingTarget != null)
            {
                shootingTarget.ImReady();
            }
        }
    }
コード例 #2
0
    public void TargetReady(NetworkConnection target)
    {
        GameObject t = GameObject.FindGameObjectWithTag("Ready");

        Debug.Log("Connection is ready " + target.address);
        if (t != null)
        {
            VRStandardAssets.ShootingGallery.ShootingTarget shootingTarget = GetComponent <VRStandardAssets.ShootingGallery.ShootingTarget>();
            if (shootingTarget != null)
            {
                shootingTarget.ImReady();
            }
        }
    }