Hi,
I Want to make some GameObjects that, say, increase a variable in another GameObject the closer and more they are.
Like magic mushrooms with a healing aura. The player’s gameObject regenerates the variable “health” faster the closer a mushroom is, but also the more mushrooms there are.
How can I check for the proximity of my mushrooms in the Player character’s game object? In my game, there are hundreds of aura-things affecting a maximum of 8 other objects so it needs to be efficient.
I also want to set an aura-range in the player’s game object to determine the falloff radius of the mushroom’s effect.