public void SetFactoryObject(FactoryObject obj) { FactoryCreativeOutput creativeOutput = obj.GetComponent <FactoryCreativeOutput>(); if (creativeOutput != null) { _creativeOutputMenu.gameObject.SetActive(true); _creativeOutputMenu.Setup(creativeOutput); } }
public void Setup(FactoryCreativeOutput creativeOutput) { CreativeOutput = creativeOutput; SetItem(creativeOutput.Item.Item); }