Answer the question
In order to leave comments, you need to log in
Why is there an interface?
Like you can do without them.
class AssetItem : IItem
{
public string Name => _name
public Sprite UIIcon => _uiIcon;
[SerializeField] private string _name;
[SerializeField] private Sprite _uiIcon;
}
interface IItem
{
public string Name { get; }
public Sprite UIIcon;
}
Можно просто так:
public string Name;
public Sprite UiIcon;
Answer the question
In order to leave comments, you need to log in
Like you can do without them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question