示例#1
0
    void Update()
    {
        YourCoins.text   = "Your coins: " + Inventory.GetProgress();
        ChestStatus.text = "Chest status: " + Chest.GetProgress();

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            gameObject.SetActive(false);
            Cursor.lockState = CursorLockMode.Confined;
            Cursor.lockState = CursorLockMode.Locked;
        }
    }
 void Update()
 {
     Text.text = Chest.GetProgress();
 }