예제 #1
0
    public void DeleteCurrentCreatureSave()
    {
        var selectedCreatureIndex = dropDown.value;
        var options = CreateDropDownOptions();

        var currentCreatureName = options[selectedCreatureIndex];

        if (currentCreatureName.ToUpper() != "CREATURE")
        {
            deleteConfirmation.ConfirmDeletionFor(currentCreatureName, delegate(string name) {
                CreatureSaver.DeleteCreatureSave(currentCreatureName);

                creatureBuilder.DeleteCreature();
                SetupDropDown();
                dropDown.value = 0;
            });
        }
    }