Answer the question
In order to leave comments, you need to log in
How to make a single logic of actions with different objects?
Good afternoon. I'm interested in how to use the same logic for different objects. Let's say I have a ball, a cube, and a cone. Absolutely three different things. I need to be able to highlight them on hover, display the title, and pick them up. Other than Cast To "..." I don't know anything else. That is, there will be hundreds of these pickup items - several hundred, and I can’t use cast to on each object. Maybe I don't understand something, if anyone knows any guide I would be grateful.
Answer the question
In order to leave comments, you need to log in
Well, make a separate class for items that you can take. Then cast on it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question