Ok so here is the scenario… I am creating a game where you throw bags at a board. If the bags land on the board you get a score. If they land on the board but fall off or are knocked off then the score goes down. The area I need help is in the scoring. What is the easiest way to accomplish this? I am using prefabs for the bags if that makes any difference. I am not new to code but I am new to C# and unity… soooooo yea any help you could provide would be awesome and very appreciated.
The easiest way would probably to just have a trigger on the board and another below it. (in which case the bags would have to have a rigidBody attached to them)
And on those triggers just use something like
to increase and decrease the score when a bag hits the trigger. (just make sure that it doesn’t keep increasing / decreasing the score over and over again)