Пример #1
0
    public void Setup(Painting painting, ScreenView screenViewManager)
    {
        _painting         = painting;
        _sourceImage      = painting.Texture;
        ScreenViewManager = screenViewManager;

        ImageControl.sprite = Sprite.Create(_sourceImage, new Rect(0, 0, _sourceImage.width, _sourceImage.height), new Vector2(0, 0));
        ButtonControl.onClick.AddListener(new UnityEngine.Events.UnityAction(() =>
        {
            PaintingManager.SelectPainting(_painting);
            ScreenViewManager.Back(ScreenView.Type.Out);
        }));
    }