본문 바로가기

Unity

Unity tips for Beginner (2) - Dealing with static string and int

This tip is connectable with my first tip and every developers sholud know about this tip!

When a developer writes some codes, there are some static string or int.

It's easy to take care of the whole codes by doing this.

example of Code.

Because I announced it with static, I don't need to put this script into the code where I need it!