void OnDestroy() { foreach (CompletedEvent d in instance._completedEvent.GetInvocationList()) { instance._completedEvent -= d; } instance = null; }
void OnEnable() { if (null == instance) { instance = GetWindow <GKToyMakerTextInput>(GKToyMaker._GetLocalization("Text input"), true); wantsMouseMove = true; minSize = new Vector2(300, 250); maxSize = new Vector2(300, 250); } }
public static void PopupTaskWindow() { instance = GetWindow <GKToyMakerTextInput>(GKToyMaker._GetLocalization("Text input"), true); }