Example #1
0
    public void OnSettleClicked()
    {
        Shop shop = FocusManager.GetCurrentFocusedBuilding().GetComponent <Shop>();

        if (shop.settledPlayer == null)
        {
            CmdOnSettleClicked(FocusManager.GetCurrentFocusedBuilding().GetComponent <NetworkIdentity>().netId,
                               FocusManager.GetCurrentFocusedPlayer().GetComponent <NetworkIdentity>().netId);
        }
        FocusManager.SetFocusedPlayer(null);
        FocusManager.SetFocusedBuilding(null);
        shop.HideUI();
    }