✅ Simple Semester Project
Rn im learning C# on Unity and i have a little project. in my game my character should throw a shuriken against a shield to deactivate it for 1s. Then i should be able to dash into the enemy while the deactivation is active. I tried using a bool which is located on the enemy, and gets false when the shuriken hits him and then the maincharacter can destroy him after dashing into him
![No description](https://cdn.answeroverflow.com/1259840209852432505/grafik.png)
26 Replies
![No description](https://cdn.answeroverflow.com/1259840378421379102/grafik.png)
What's the question here?
why isnt the connection working
![No description](https://cdn.answeroverflow.com/1259842400193609808/image.png)
Interesting choice of words btw :pepecoffee:
What do you mean by "connection"?
throw Shuriken = IsShieldActive false
dash while IsShieldActive ( in other Script) destroy Gameobject
Have you fixed the errors?
idk how
like should it even work that way
So instead of saying "something is not working"
You post the errors
sorry :( ive started c# like a week ago
After that, it's easier for someone to help you
There are two parts to this:
1. Make sure you got valid C#
2. Make sure your game logic is correct
We can definitely help with 1. and maybe also with 2.
Tbh you should not start with Unity
But that's too late now
so what can i do that i can make it easier for u to help me
In general, you post the code containing errors and the actual error messages
In VS, the Error List
(I think)