// Use this for initialization private void Start() { currentState = GMDState.Off; playerRigidbody = playerGameObject.GetComponent <Rigidbody> (); audioSource = GetComponent <AudioSource>(); audioSource.Stop(); }
/// <summary> /// Sets the state of the GMD to the new state. /// </summary> /// <param name="state">State.</param> private void SetCurrentState(GMDState state) { currentState = state; }