Lucas Elger

Lucas Elger

  • NA
  • 3
  • 609

I need to use strings to know if I succeeded to craft, but how?

Feb 24 2023 2:34 PM

How do I make it so I can use strings in my unity UI TMPro? I also need to know when I should use the different strings as two strings are for when crafting an object fails, like is there to many objects or to few, ande one is for then I succeed to craft an object. 

The three texts are "try to remove an object to craft a "+outcome // "try to add an object to craft a "+outcome // "You succeeded in crafting a "+outcome

The recepies and materials are deffined with items which has Data-packages connected to them through an Item script. Every item has their own IDs.

 


Answers (1)