- Home /
Disable script on 2. object by boolean from 1. object.
I am making a RTS game and I want my building selection GUI to be only visible when my boolean that represents if my HQ building is selected is true. I thought about creating an empty object and putting my GUI script on it and while boolean on HQ building is true script on empty is enabled, otherwise GUI script on empty is disabled. Just post here script that coud do such thing, thanks in advance.
Comment
Your answer
Follow this Question
Related Questions
Game Over Screen Problem 3 Answers
Simple GUI Problem... 3 Answers
UI button doesn't appear - c# 3 Answers
Hiding OnGUI? 1 Answer
Pass bool value from multiple objects to one file to check their values? 1 Answer