I have checked the code, rewritten it and even copied from the source but I get an error when loading. ‘Unexpected symbol enum’ followed by errors for each part of the line to the end.
The script starts -
using UnityEngine;
using UnityEngine.SceneManagement;
public class Rocket : MonoBehaviour {
[SerializeField] float rcsThrust = 250f;
[SerializeField] float mainThrust = 500f;
Rigidbody rigidBody;
AudioSource audioSource;
// Use this for initialization
void Start () {
Rigidbody rigidBody;
AudioSource audioSource;
enum State { Alive, Dying, Transcending }
State state = State.Alive;
}
which as far as I can see is the same as the course one, except of course it does not load.