// MonoBehaviour's INTERFACE

    void Awake()
    {
        ClosePanel();

        // Set static reference.

        ModalPanelHandle.RegisterHandleMain(this);
    }
 void OnDestroy()
 {
     ModalPanelHandle.UnregisterHandleMain(this);
 }