Exemple #1
0
        public void ActionSelect(int actionInt)
        {
            ActionType choice = (ActionType)actionInt;

            // heavy sword
            if (choice == ActionType.HeavySwordH)
            {
                if (playManager.InsertAction(spot + 1, ActionType.HeavySwordS))
                {
                    if (playManager.InsertAction(spot, choice))
                    {
                        TogglePanel(spot);
                    }
                }
            }
            else
            {
                if (playManager.InsertAction(spot, choice))
                {
                    TogglePanel(spot);
                }
                else
                {
                }
            }
            playManager.CalculateEnergy();
            uiUpdater.UpdateTextElements();
        }