|
Having trouble figuring out how to use other C# files with my other C# files, can anyone help me getting this to work.
(comments are locked)
|
|
If you are trying to access an instance of a script, I'll quote cj.coimbra : If you want to use a class from another file *.cs, well, nothing special here, just call the class as if it was one file. Not sure if it was your question, maybe you're looking for something static ?
(comments are locked)
|

If your other file is attached to a game object, then tag this game object and use:
GameObject.FindGameObjectWithTag("sometag").GetComponent < NameOfYourScript > ().NameOfYourFunction();