I’ve got multiple rigidbodies, which all detect the amount of collision force they recieve.
I’ve created a “Score”-object, which I want to display the added score with just a simple GUI text for now.
All the colliding objects have a script with a public float variable “damageReceived”.
Now, I would like to collect all these “damageReveived” values to my “Score” object.
Is it possible to send the values to the “Score”-object, or should the “Score”-object collect them somehow?
And of course the score object should add all the values together gathered during the gameplay.
Am I approaching this in a completely wrong way?
I’m getting quite confused with the GetComponent -stuff here