예제 #1
0
    public void Execute()
    {
        ExecType et;

        if (executables != null)
        {
            foreach (var e in executables)
            {
                et = (ExecType)Enum.Parse(typeof(ExecType), e.LocalName);
                switch (et)
                {
                case ExecType.execScen:
                    Debug.Log("Executing a new scenario");
                    scenarioController.LoadScenario(int.Parse(e.InnerText));
                    break;

                case ExecType.execEvent:
                    Debug.Log("Executing a new event");
                    break;
                }
            }
        }
    }