using System; using System.Collections.Generic; using System.Text; using LavishScriptAPI; namespace Bytebot { public sealed class Events { static readonly Events instance = new Events(); public event EventHandler Event_Bytebot; static Events() { } Events() { LavishScript.Events.AttachEventTarget(LavishScript.Events.RegisterEvent("BYTEBOT"), Event_Bytebot); } ~Events() { LavishScript.Events.DetachEventTarget(LavishScript.Events.RegisterEvent("BYTEBOT"), Event_Bytebot); } public static Events Instance { get { return instance; } } } }