using System.Collections; using System.Collections.Generic; using Unity.Collections; using UnityEngine; public interface IApple { public string name { get; set; } public int price { get; set; } public void Apple(string name, int price) { this.name = name; this.price = price; } } public class StoreApples : MonoBehaviour { public IApple[] apples; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }