Beispiel #1
0
 /// <summary>
 /// Sets the game into play mode
 /// </summary>
 public void Play()
 {
     if (CurrentState == GameState.Ready)
     {
         CurrentPlayer.Activate();
         EnvironmentRenderer.material.SetVector("_Velocity", new Vector4(0, -1));
         EnvironmentRenderer.material.SetFloat("_Speed", GameConfig.OverallSpeed * 0.2f * Time.deltaTime);
         CurrentState = GameState.Playing;
     }
 }