private void Awake() { if (instance is null) { instance = this; } widgetViewer = gameObject.GetComponent <WidgetViewer>(); }
private void Awake() { if (instance is null) { instance = this; } touchManager = gameObject.GetComponent <TouchManager>(); widgetViewer = gameObject.GetComponent <WidgetViewer>(); DontDestroyOnLoad(this); }
public static void Create() { WidgetViewer window = GetWindow(typeof(WidgetViewer)) as WidgetViewer; window.Show(); }