In this module, the variable “baseWaypoint” is declared in Tower class. But at what point is it actually defined. I see it defined when running the game, but can’t figure out where it would get defined when running the the game. Can anyone talk (write) me through this. I think I am missing some underlying fundamental concept, and would appreciate if someone could consider this when answering, and let me know what I need to better understand how the value for “baseWaypoint” gets defined.
The public variable “baseWaypoint” is declared but is never set in this lesson. At the start of the next video, the line “newTower.baseWaypoint = baseWaypoint;” is added to the TowerFactory’s InstanteNewTower method.