Exemple #1
0
    private void ShowActionGUI(Action action, int i, int count)
    {
        if (action is ActionDialogOption)
        {
            ActionDialogOption tempAction = (ActionDialogOption)action;
            tempAction.ShowGUI();
        }

        else if (action is ActionInventoryCheck)
        {
            ActionInventoryCheck tempAction = (ActionInventoryCheck)action;
            tempAction.ShowGUI(i + 2, count - 1);
        }

        else if (action is ActionSendMessage)
        {
            ActionSendMessage tempAction = (ActionSendMessage)action;
            tempAction.ShowGUI();
        }

        else if (action is ActionVarCheck)
        {
            ActionVarCheck tempAction = (ActionVarCheck)action;
            tempAction.ShowGUI(i + 2, count - 1);
        }

        else
        {
            action.ShowGUI();
        }
    }
Exemple #2
0
    private void ShowActionGUI(Action action, GameObject _target, int i, int count)
    {
        if (action is ActionInventoryCheck)
        {
            ActionInventoryCheck tempAction = (ActionInventoryCheck)action;
            tempAction.ShowGUI(i + 2, count - 1);
        }

        else if (action is ActionSendMessage)
        {
            ActionSendMessage tempAction = (ActionSendMessage)action;
            tempAction.ShowGUI(_target);
        }

        else if (action is ActionVarCheck)
        {
            ActionVarCheck tempAction = (ActionVarCheck)action;
            tempAction.ShowGUI(i + 2, count - 1);
        }

        else if (action is ActionSceneCheck)
        {
            ActionSceneCheck tempAction = (ActionSceneCheck)action;
            tempAction.ShowGUI(i + 2, count - 1);
        }

        else
        {
            action.ShowGUI();
        }
    }