internal static bool ShowAtPosition(Vector2 pos, PopUpState popUpState) { if (s_Instance == null) { s_Instance = CreateInstance<CodeViewPopUp>(); s_Instance.hideFlags = HideFlags.HideAndDontSave; } s_Instance.Init (pos, popUpState); return true; }
void OnDisable() { s_Instance = null; }