void Start() { composableVisibility = GetComponent<ComposableVisibility>(); playerUpgrades = PlayerUpgrades.instance; playerUpgrades.PlayerUgradeBought += UpdateGameObjectState; playerUpgrades.OnLoad(UpdateGameObjectState); changeVisibilityWhenPlacingTiles = GetComponent<ChangeVisibilityWhenPlacingTiles>(); }