Example #1
0
    void OnEnable()
    {
        itemDB.GenerateGameItems(6, 2, 2);

        DisplayGoodItems();
        DisplayBadItems();

        for (int t = 0; t < trashItems.Count; t++)
        {
            trashItems[t].SetActive(false);
        }

        for (int r = 0; r < returnedGoodItems.Count; r++)
        {
            returnedGoodItems[r].SetActive(false);
        }

        submit.gameObject.SetActive(false);

        inputField.text = "";
        inputField.Select();
        inputField.ActivateInputField();

        charLimitText.gameObject.SetActive(true);
        charLimitText.text  = "0/" + censor.maxChars;
        charLimitText.color = Color.black;

        UnpackBox();

        CheckGameOver();
    }