x


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()?

more ▼

asked Apr 30 '11 at 07:34 AM

ina gravatar image

ina
3.3k 492 548 597

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3318
x492
x286

asked: Apr 30 '11 at 07:34 AM

Seen: 521 times

Last Updated: Apr 30 '11 at 07:34 AM