public override void RegisterEvents() { if (_processor == null) { _processor = Services.Instance.Resolve <IScriptEventProcessor>(); } _processor?.RegisterHandler(this, OnScriptEvent); }
public void Load(IScriptEventProcessor scriptProcessor, IEventProcessor processor) { _processor = processor; scriptProcessor.RegisterSerializer(new TutorialTriggerEventSerializer()); }