![]() ![]() Save it in a variable when the GameObject is created! (Check the Start()-method in code below) Don't use GetComponent() every time you want to read a value.Here's some tips you didn't ask for to improve your code in terms of cleanliness, best practice and some functionality: The correct answer is likely in the comments, by provided you've provided us with the actual code being used. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |