public static void Init() { if (_instance) { return; } _instance = CreateInstance <QtuiPopup>(); // Initialize, set size to 1x1 to avoid a flicker _instance.position = new Rect(0, 0, 1, 1); _instance.ShowPopup(); }
private void OnDestroy() { _instance = null; _positionSet = false; _mLoaded = false; }