hi! im beginner to Unity and i couldnt solve the problem. the false command works but true does not. im sure i assigned the objects correctly what should i do?
public GameObject square;
void Start()
{
}
void Update()
{
if (Input.GetKeyDown(KeyCode.K))
{
square.SetActive(false);
}
if (Input.GetKeyDown(KeyCode.A))
{
square.SetActive(true);
}
}