Check out example codes for "how to edit unity scripts in sublime text". It will help you in understanding the concepts better.

Code Example 1

Windows: In Unity: Edit > Preferences > External Tools > edit "External Script Editor" and navigate to Sublime Text, file subl.exe.

Code Example 2

Windows: In Unity: Edit > Preferences > External Tools > edit "External Script Editor" and navigate to Sublime Text, file subl.exe.

Learn ReactJs, React Native from akashmittal.com