public override void RegisterEvents()
        {
            if (_processor == null)
            {
                _processor = Services.Instance.Resolve <IScriptEventProcessor>();
            }

            _processor?.RegisterHandler(this, OnScriptEvent);
        }
示例#2
0
 public void Load(IScriptEventProcessor scriptProcessor, IEventProcessor processor)
 {
     _processor = processor;
     scriptProcessor.RegisterSerializer(new TutorialTriggerEventSerializer());
 }