public void SetFactoryObject(FactoryObject obj)
        {
            FactoryCreativeOutput creativeOutput = obj.GetComponent <FactoryCreativeOutput>();

            if (creativeOutput != null)
            {
                _creativeOutputMenu.gameObject.SetActive(true);
                _creativeOutputMenu.Setup(creativeOutput);
            }
        }
Exemple #2
0
 public void Setup(FactoryCreativeOutput creativeOutput)
 {
     CreativeOutput = creativeOutput;
     SetItem(creativeOutput.Item.Item);
 }