Esempio n. 1
0
    private IEnumerator PlanetStage()
    {
        asteroidSpawner.asteroidMaxAmount = 25;
        StartCoroutine(DifficultyIncrease());
        for (;;)
        {
//			planetControls.ReadControls();
            if (Input.GetKey(KeyCode.E))
            {
                //todo: test against some variables and subtract some of them - so  that launching the ship acually costs something
                ShipStageEvent();
            }

            if (Input.GetKeyDown(KeyCode.F) && !UiScript.isUIOpen)
            {
                UiScript.OpenWindow();
            }
            else if (Input.GetKeyDown(KeyCode.F) && UiScript.isUIOpen)
            {
                UiScript.CloseWindow();
            }

            yield return(null);
        }
    }