
Public class PlayerController : MonoBehaviour Any idea on where I might have gone wrong ? when I drag the prefab bolt into the scene it move forward as expected. I can see more bolts piling on top of the existing shots and non moves forward. Hi I am stuck on lesson shooting shots, following the tutorial updated my player-controller script, but when I hit play and click to fire the bolts seem to be stuck right in front of the player ship and doesn't travel forward. Yield return new WaitForSeconds(waveWait) RestartText.text = ("Press 'R' for Restart") Yield return new WaitForSeconds(spawnWait) Instantiate(Hazard, spawnPosition, spawnRotation) Quaternion spawnRotation = Quaternion.identity Vector3 spawnPosition = new Vector3(Random.Range(-spawnValues.x, spawnValues.x), spawnValues.y, spawnValues.z) Yield return new WaitForSeconds(startWait) Īpplication.LoadLevel(Application.loadedLevel)


Keyword void cant be used in this context I have one error for the restart function (Ending the game)Įrror 1.
