is it possible to embed two javascript file in 1 game object

is it possible to embed two javascript file in 1 game object?

you don’t embed unityscripts into game objects

you attach them to a game object and yes you can attach as many as you want

thank you sir… another question…
is it possible to make my own function name in unity… sorry sir im not really good at programming so that’s why im confuse…

if it’s possible how can i call my own function when i need it…?

yes you can create own functions

to call it you first need to get the instance of the script on which you want to call it (every script when on a game object is an own object to look for and talk to)

I would recommend to start with the 2d jump’n’run tutorial in the support - resources area at unity3d.com

thank you sir… ill try to find some example codes. :slight_smile: