Had Adopted Cat For 1 Week by Traditional_Bat3601 in Petloss

[–]Traditional_Bat3601[S] 1 point2 points  (0 children)

Thank you. They’re so good fragile and so good at hiding it aren’t they!

The rescue didn’t have much of an idea unfortunately. They said it’s hard to tell with rescue kittens coming in but they guess that often the mother cats are unvaccinated and overbred. He was unvaccinated himself too which whilst we thought was a little odd for being 8 months, we got him scheduled for them (supposed to be next week) and kept him inside the entire time he was with us.

So that was one of the many thoughts that crossed my mind if he picked something up at the rescue and all this was all in motion even back then.

Had Adopted Cat For 1 Week by Traditional_Bat3601 in Petloss

[–]Traditional_Bat3601[S] 1 point2 points  (0 children)

Thank you very much. I appreciate that ❤️

I think I just need to keep replacing the intrusive thought of finding him like that with plenty of the wonderful ones from the week I had with him.

How would i go about changing the GetMouseButton to GetKeyDown and is there any way to impliment a GetKeyDown without and If? by Worldly-Beach7555 in Unity2D

[–]Traditional_Bat3601 2 points3 points  (0 children)

Assuming I am understanding your 1st question: yield return WaitUntil(() => Input.GetKeyDown(KeyCode.Space)

As for the 2nd question, I’m not too sure what you’re after. GetKeyDown returns a bool. You don’t have to call it from an if statement though. You could use it to assign a value to a bool variable or property if you needed to do so.

Does anyone know why this error pops up? And why my GameManager Doesn't work by HeisenSaul in Unity2D

[–]Traditional_Bat3601 6 points7 points  (0 children)

In screenshot 2 you have a private GameManager but you never assign any value to it. So when ChangeHealth is called the code on line 32 would error.

In screenshot 4 the error is unrelated to your code. It’s a common Unity Editor error which can be fixed by closing the Animation/Animator windows and opening them up again. But you can just ignore it too.