Пример #1
0
    public void RPC_ReceiveDiceManual(int dice, PhotonPlayer caller)
    {
        NPlayer player = FindGamePlayer(caller);

        StartCoroutine(player.Move(dice));
    }
Пример #2
0
    public void RPC_ReceiveDice(int dice1, int dice2, PhotonPlayer caller)
    {
        NPlayer player = FindGamePlayer(caller);

        StartCoroutine(player.Move(dice1 + dice2));
    }