Ejemplo n.º 1
0
        protected void AddDebugLogToSequence(FASequence seq)
        {
            seq.OnStart +=
                delegate
                {
                    WriteDebugLog(string.Format("Start {0}.{1}", Name, seq.Name));
                };

            seq.OnStop +=
                delegate
                {
                    WriteDebugLog(string.Format("Stop {0}.{1}", Name, seq.Name));
                };

            seq.OnTerminate +=
                delegate
                {
                    WriteDebugLog(string.Format("Terminate {0}.{1}", Name, seq.Name));

                    seq.Stop();
                    seq.ClearState();
                    seq.Start();
                };
        }