Spent the past week making various vehicles such as tanks and even a boat then a thought came to me, since i have already made a windmill and did some animation for its rotation why not make a aircraft. So i went to google looking for some reasonable image planes that i could use as reference to create the base shape of the aircraft. After searching for a while i came across two image planes for a spitfire, one from the side and the other top down which would allow me to get a decent idea as to the scale of various parts such as the wings in comparison to the size of the fuselage.
Now to create a game controller start by making a new game object and name it Game Controller and set it to origin position and change the tag to Game Controller and add component, new script and name it game controller, now edit the game controller script. Public class GameController : MonoBehaviour { Public GameObject hazard; Public Vector3 spawnValues; Public inthazardCount; Public float spawnWait; Public float startWait; Void start () { StartCoroutine (SpawnWaves ()); } IEnumerator SpawnWaves () { Yield return new WaitForSeconds (startWait); while (true) { For (int I = 0; i < hazardCount; i++) { Vector3 spawnPosition = new vector3 (Random.Range (-spawnValues.x, spawnValues.x), spawnValues.y, spawnValues.z); Quaternion spawnRotation = Quaternion.identity; Instantiate (hazard, spawnPosition. spawnRotation); Yield return new WaitForSeconds (spawnWait); } Yield return new WaitForSeconds (waveWait); } } } Select the Game Contr...
Comments
Post a Comment