Exemplo n.º 1
0
    /// <summary>
    /// Clears the command pool.
    /// </summary>
    public void ClearCommandPool()
    {
        int textCounter = 0;

        DialogueScript.UpdateCommandsPool();
        InterfaceScript.CommandPoolTextNumber = 0;
        foreach (Text commandPoolText in InterfaceScript.CommandPoolTexts)
        {
            commandPoolText.color = Color.white;
        }
        foreach (Text commandPoolText in InterfaceScript.CommandPoolTexts)
        {
            commandPoolText.text = textCounter < PlayerPrefs.GetInt("CommandsPool") ? "FREE SLOT" : "CLOSED SLOT";
            textCounter++;
        }
    }