When start the game, after a few seconds I start getting this error message whenever I try to place a tower:
ArgumentException: The Object you want to instantiate is null.
UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at <cb77d76f0e674d3da5f8c94addc0e0a6>:0)
UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) (at <cb77d76f0e674d3da5f8c94addc0e0a6>:0)
UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) (at <cb77d76f0e674d3da5f8c94addc0e0a6>:0)
TowerFactory.InstansiatieNewTower (Waypoint baseWaypoint) (at Assets/Scripts/TowerFactory.cs:27)
TowerFactory.AddTower (Waypoint baseWaypoint) (at Assets/Scripts/TowerFactory.cs:16)
Waypoint.OnMouseOver () (at Assets/Scripts/Waypoint.cs:36)
UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32)
If I try to place a tower in the first ~7 seconds, it works. If I try to place one after this I get the error message above.