↧
Answer by tanoshimi
In the GameMenu code above, you're never calling *SetBuilding(buildings[x+y*invCol]);* so it's not surprising that curBuilding is always null - it never gets assigned a value. Try initialising...
View ArticleAnswer by malta32
Solved it. Trying to modify the variable from the GameMenu only changes the prefab GameObject and not the instansiated clones. Referencing the GameMenu from the cloned GameObjects TileSelect Script...
View Article