internal void Show(LandTileLogic landTileLogic) { ContextObject = landTileLogic; OwnerText.text = ContextObject.TileInfo.Owner; TypeText.text = LandManager.MappingIDToName[ContextObject.TileInfo.Tile]; BuyAmountText.IsActive(); BuyAmountText.text = "Buy for " + ContextObject.TileInfo.Price.ToString(); GeneralDialogsContainer.SetActive(true); LandTileDialogeGameObject.SetActive(true); bool isHabor = LandManager.MappingIDToName[ContextObject.TileInfo.Tile] == "Harbor"; HaborSpecificOptions.SetActive(isHabor); }
// Start is called before the first frame update void Start() { LandTileLogic = gameObject.GetComponentInParent <LandTileLogic>(); }