コード例 #1
0
    //TO-DO
    //private KeyCode testFunction = KeyCode.T;

    void Update()
    {
        if (Player.health > 0)
        {
            UpdatePlayer();
        }

        if (Input.GetKeyDown(menu))
        {
            pauseMenu.ActivatePause();
        }

        if (Input.GetKeyDown(KeyCode.T))
        {
            Player.health = 0;
        }
    }