- Home /
Separating large script into smaller files
Sheepishly, I am not sure how best to separate a long script into smaller scripts.
Typically, I have a large script that contains all the logic, and all the code. There are huge sections just dedicated to detecting single finger touch, two finger touch, etc.
In general, I would say the multitouch features can be segmented out - this would save me from scrolling through a lot of code just to jump to the right section.
But, how do you break it up into smaller files, especially when the I/O is polled from the same Update()
?
Your answer
Follow this Question
Related Questions
Is enabling and disabling a script component with an Update() function in it a good practice? 2 Answers
Is there a smarter way to implement event sequencing? 1 Answer
Performance of Mathf.Clamp vs if-else statement? 1 Answer
Need more buttons to this script. 1 Answer
Display var on gui not working... 2 Answers