Exemple #1
0
    private void CleanSelectedItem()
    {
        if ((Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1)) && !onItem)
        {
            if (curBaseScript)
            {
                curBaseScript.CloseBaseMenu();
                curBaseScript.SetSelected(false);
            }
            if (currentArmyScript)
            {
                currentArmyScript.SetSelected(false);
            }

            selectedItem      = null;
            curBaseScript     = null;
            currentArmyScript = null;
        }
    }