Exemple #1
0
    public void PickUp(GameObject c)
    {
        if (!hasBeenPickedUpBefore)
        {
            rTimerScript.BeginCountdown();
        }
        PV.RPC("RPC_OnTriggerEnter", RpcTarget.All);
        PlayerColor pc = c.GetComponent <PlayerColor>();

        PV.RPC("RPC_SetPlayerBH", RpcTarget.AllViaServer, c.GetPhotonView().ViewID);
    }