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"); } }
public void BuyFailCallback(string msg) { OnBuyFailCallback?.Invoke(msg); }