im creating a small First person game for dissertation research.
i have the character in the center of the scene that can only rotate and a cross hair.
basically i need to randomly spawn a target (which i have created) in one of 20-30 locations around the character. once the target has been shot/tagged it disappears recording the amound of time in s and ms it was alive. and another target is again randomly spawned at one of the locations.
I understand i need to create a bunch of spawnpoints. and use `Transform[] spawnpoints = GetComponentsInChildren(typeof(Transform)) as Transform[];` to get an array of those spawn points,
i am unsure of where the different scripts need to be assigned what scripts i need.
would it be best to have a boolean that is assigned globally to track if a target is present in the scene.