If you could help me, I would be sooo happy:
{
if (torch.SetActive(true) && (Input.GetKeyDown("t"))
{
torch.SetActive(false);
}
}
If you could help me, I would be sooo happy:
{
if (torch.SetActive(true) && (Input.GetKeyDown("t"))
{
torch.SetActive(false);
}
}
hi;
for checking an object is activated u should do like this :
if (torch.activeSelf == true && (Input.GetKeyDown("t")))
{
torch.SetActive(false);
}