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