protected virtual void OnClickOKBtn() { if (cb != null) { cb(); cb = null; } gameObject.SetActive(false); }
public void SetCard(Square square, GenericCallBack callback = null) { SmallTitle.text = square.Type.ToUpper().Trim(); titleText.text = square.Name.ToUpper().Trim(); MainDescription.text = square.Desc; FootNote.text = "MORTGAGE VALUE $" + square.Value / 2; if (Constants.ColorDict.ContainsKey(square.Color)) { Banner.color = Constants.ColorDict[square.Color]; } }
public void SetCard(Square square, GenericCallBack callback = null) { SmallTitle.text = square.Type.ToUpper().Trim(); titleText.text = square.Name.ToUpper().Trim(); rentRows[0].ItemName.text = "1 R.R. Owned"; rentRows[0].Price.text = "$" + square.Rent.ToString(); rentRows[1].ItemName.text = "2 R.R. Owned"; rentRows[1].Price.text = "$" + square.Rent1h.ToString(); rentRows[2].ItemName.text = "3 R.R. Owned"; rentRows[2].Price.text = "$" + square.Rent2h.ToString(); rentRows[3].ItemName.text = "4 R.R. Owned"; rentRows[3].Price.text = "$" + square.Rent3h.ToString(); MortgageValue.text = "MORTGAGE VALUE $" + square.Value / 2; if (Constants.ColorDict.ContainsKey(square.Color)) { Banner.color = Constants.ColorDict[square.Color]; } }
public void SetCard(Square square, GenericCallBack callback = null) { SmallTitle.text = square.Type.ToUpper().Trim(); titleText.text = square.Name.ToUpper().Trim(); SingleRent.text = "RENT $" + square.Rent; rentRows[0].ItemName.text = "WITH 1 HOUSE"; rentRows[0].Price.text = "$" + square.Rent1h.ToString(); rentRows[1].ItemName.text = "WITH 2 HOUSE"; rentRows[1].Price.text = "$" + square.Rent2h.ToString(); rentRows[2].ItemName.text = "WITH 3 HOUSE"; rentRows[2].Price.text = "$" + square.Rent3h.ToString(); rentRows[3].ItemName.text = "WITH 4 HOUSE"; rentRows[3].Price.text = "$" + square.Rent4h.ToString(); rentRows[4].ItemName.text = "WITH HOTEL"; rentRows[4].Price.text = "$" + square.RentHotel.ToString(); MortgageValue.text = "MORTGAGE VALUE $" + square.Value / 2; HouseCost.text = $"HOUSES COST ${square.BuildCost} EACH"; HotelCost.text = $"HOTELS {square.BuildCost} PLUS 4 HOUSES"; Footer.text = "IF A PLAYER OWNS ALL THE LOTS OF ANY COLOR-GROUP, THEN RENT IS DOUBLED ON UNIMPROVED LOTS IN THAT GROUP."; if (Constants.ColorDict.ContainsKey(square.Color)) { Banner.color = Constants.ColorDict[square.Color]; } }
public void UpdateInfo(string title, GenericCallBack callback) { titleText.text = title; cb = callback; }
public void UpdateInfo(string title, GenericCallBack okCB, GenericCallBack cancelCB) { titleText.text = title; okCallBack = okCB; cancelCallBack = cancelCB; }