So for example, I have images folder, there image file name is,
some book name1
I am good book
I am best book
other different
,
and some class variables that has name variable.
Class Book{
string name;
Sprite image;
}
and I want assign image file to each book variable by comparing book’s name and image name.
Problem is, at current state, my image’s name isn’t completely same with book’s name.
But very similar at some sentence like Book1’s name is [I am good book and you?].
then this should connect with image [I am good book].
How can I do this?