public void Init(GameObject prefab, Transform parent) { GameObject colorSystemItemGameobject = GameObject.Instantiate(prefab); colorInventoryItemComponent = colorSystemItemGameobject.GetComponent <ColorInventoryItemComponent>(); colorInventoryItemComponent.Init(this); colorInventoryItemComponent.transform.SetParent(parent); colorInventoryItemComponent.image.color = color; }
private void OnColorInventoryItemComponentSelect(ColorInventoryItemComponent colorInventoryItemComponent) { SelectedColorInventoryItem = colorInventoryItemComponent.colorInventoryItem; }