Finds the closest game object and stores it in a variable for later use.
Game Object
The game object to measure distance from.
With Tag
Filter by this Tag.
Store Object
Store the closest object (or null if none found) in a variable.
Store Distance
Store the distance to the closest object (or float.infinity if none found) in variable.
Every Frame
Perform the action every frame.