Пример #1
0
    private void Awake()
    {
        if (instance is null)
        {
            instance = this;
        }

        widgetViewer = gameObject.GetComponent <WidgetViewer>();
    }
Пример #2
0
    private void Awake()
    {
        if (instance is null)
        {
            instance = this;
        }

        touchManager = gameObject.GetComponent <TouchManager>();
        widgetViewer = gameObject.GetComponent <WidgetViewer>();

        DontDestroyOnLoad(this);
    }
Пример #3
0
    public static void Create()
    {
        WidgetViewer window = GetWindow(typeof(WidgetViewer)) as WidgetViewer;

        window.Show();
    }