hey everibody i have a problem with unity i use Unityscript .
so my problem is i can make disappear a text with the new ui but when i try to do the same for a button it doesn't work so the only think i have find is the boolean interactable but when i launch the game he is here and i don't want so this is my code > import UnityEngine.UI;> public var reload : Button;> public var leave : Button;> public var timetext : Text;>>>> function Start () {>> timetext.enabled = false;>> reload.interactable = false; // when i use enabled nothing append>> leave.interactable = false;>> }>> function Update () {>>>> if (finished = true) {>> timetext.enabled = true;>> reload.interactable = true;>> leave.interactable = true;>>>> }>>>> }
Thanks for your answer ;)
↧