コード例 #1
0
ファイル: Cell.cs プロジェクト: endovitsky/Farm
        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);
        }