Ok my problem is probably really easy but i cant see it at the moment.
I have a Gameobject with panels and stuff that should not be active all the time.
I now have in the start function:
buyMenu = GameObject.Find("BuyMenu");
and in the update function:
if(Input.GetKey(KeyCode.K) && isActive == false)
{
NGUITools.SetActive(buyMenu, true);
}
(and yes i declared the variable and isActive is false ofc)
The problem now is i can deactivate it alright with: NGUITools.SetActive(buyMenu, false);
but i cant activate it with: NGUITools.SetActive(buyMenu, true);
The biggest problem is that i dont get any error messages so any help would be appreciated.