protected virtual void OnDisable() { if (GuiSystem.IsInstanceCreated ()) { GuiSystem.Instance.RemoveEventReceiver (this); } _visualPanel = null; }