Exemplo n.º 1
0
 public void RequestBuy(Player player, PlotConstruction plot)
 {
     if (Bank.Ins.MoneyPlayer(player) >= plot.PurchasePrice)
     {
         photonView.RPC("RequestBuyServer", RpcTarget.MasterClient, player.Id, (int)plot.Id, PhotonNetwork.LocalPlayer.UserId);
     }
     else
     {
         OnBuyFailCallback?.Invoke("Not enough money");
     }
 }
Exemplo n.º 2
0
 public void BuyFailCallback(string msg)
 {
     OnBuyFailCallback?.Invoke(msg);
 }