# Multiple Scripts versus single script

I have (methink) a simple question regarding attaching scripts to a GameObject.
Is there any performance loss if I attach a script to a GameObject for each action to be performed (such as movement, attaking, interacting) instead of attaching a single script dealing with every single aspect?

I'd like to separete these things due to clearity reasons but I wonder if calling different FixedUpdate() functions would imply some kind of issue. For example: is their execution ensured to be called sequentially or they could run asincronously?

• Don't do non-physics in fixed update. – user15805 Jan 23 '15 at 15:19

I'd like to separete these things due to clearity reasons but I wonder if calling different FixedUpdate() functions would imply some kind of issue. For example: is their execution ensured to be called sequentially or they could run asincronously?

Each callback of each MonoBehaviour will be called exactly once for each update loop, but you haven't any guarantee about the order (unless you force the execution order explicitly).

Is there any performance loss if I attach a script to a GameObject for each action to be performed (such as movement, attaking, interacting) instead of attaching a single script dealing with every single aspect?