示例#1
0
    public void RpcSetAsSpectator()
    {
        transform.position = spectatorPosition.position;
        vrCamera.GetComponent <GvrPointerPhysicsRaycaster>().enabled = false;
        hud.Hide();
        playerRenderer.enabled = false;
        isSpectator            = true;

        leaderBoard = FindObjectOfType <LeaderBoard>();
        leaderBoard.AddPlayer(this);
    }