private void OnDestroy()
 {
     if (_instance == this)
     {
         _instance = null;
         _invokes  = null;
     }
 }
    private void Awake()
    {
        if (_instance == null)
        {
            _instance           = this;
            _instance.hideFlags = HideFlags.HideInInspector | HideFlags.HideInHierarchy;

            if (_invokes == null)
            {
                _invokes = new Hashtable();
            }
        }
        else
        {
            DestroyImmediate(this);
        }
    }