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(); } } }
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(); } } }