Exemplo n.º 1
0
        public void SetContent <T>(T value) where T : IPlaceable
        {
            _content = value;

            if (_content == null)
            {
                contentImage.sprite = null;
            }
            else
            {
                SetTypeOfContent(_content.GetType());
            }

            progressBar.gameObject.SetActive(_content != null);
        }