Esempio n. 1
0
    public void CreateScreen(CreateScreenSignal signal)
    {
        if (_activeScreen)
        {
            DestroyScreen();
        }

        if (signal.toCreate == null)
        {
            signal.toCreate = _screens.mainScreen; // i feel meh about this
        }

        _activeScreen = CanvasRenderer.Instantiate(signal.toCreate, _canvas.transform, false);
    }