コード例 #1
0
        public override void Close()
        {
            base.Close();

            if (ExceptionHandler.Unloading)
            {
                MyAPIGateway.Utilities.MessageEntered -= MessageHandler;
                Instance = null;
            }
        }
コード例 #2
0
        public RichHudCore() : base(false, true)
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                throw new Exception("Only one instance of RichHudCore can exist at any given time.");
            }

            handlerRegTimer = new Stopwatch();
        }