Hi,
When we declare a variable, we need to define a type. Instead of being creative, we simply name our variable after the class when the class name is self-explanatory. We do not have to distinguish between individual variables of type SceneLoader in this class.
Vector2 is not that self-explanatory. We know that the object contains two float components but we do not know what purpose it has in the context of our class just by reading Vector2 vector2
. For this reason, we give it a more meaningful name like paddleToBallVector
.