Exemplo n.º 1
0
    private void Update()
    {
        GetAdvanceLevel();
        GetRestartGame();
        GetContinue();

        // Cheat to beat level
        if (Input.GetKey(KeyCode.Backspace) && Input.GetKeyDown(KeyCode.L))
        {
            LevelComplete();
        }

        // Cheat to gain 499 coins
        if (Input.GetKey(KeyCode.Backspace) && Input.GetKeyDown(KeyCode.C))
        {
            coins           += 499;
            coinCounter.text = coins.ToString();
        }

        // Cheat to reset fuel
        if (Input.GetKey(KeyCode.Backspace) && Input.GetKeyDown(KeyCode.F))
        {
            illuminate.ResetFuel();
        }

        // Cheat to gain armor
        if (Input.GetKey(KeyCode.Backspace) && Input.GetKeyDown(KeyCode.A))
        {
            player.GetComponentInChildren <Touch>().GainArmor();
        }
    }