- Home /
C# Script interaction between separate locations
I'm currently in the middle of integrating the gamejolt api into some of my games so that I can use their high score system, but recently i've run into a scripting problem. Usually, if I needed a script to interact with the gjapi files (located in their own folder) I would just move the to the folder and continue on, but this time I have a script that needs to interact with both the gamejolt api AND many of the other scripts (located in Standard Assets > Scripts). Is there a way to have scripts cross-communicate through these locations?
I've already tried transform.GetComponent(), but unity fails to recognize the script if it isn't in the same location as the script calling the function, the same goes for trying to initialize the script I want to call as a variable.
Thank you in advance for any advice or help!
Unity doesn't care where the script source file is saved. The only thing that matters is script compilation order. stillsifsscriptsifsource f as vasifsstcvafsti
Can you change the compilation method/order, also what do those last 4 words mean?
Answer by NeverEndingPrjct · Aug 24, 2014 at 09:59 PM
what oO
using namespaces and alias should solve ure problem
Namespacing and alias would be nice, but the GameJolt API is very large and does not make use of them :/
so u its in the global namespace ... u can access them from everywhere
Your answer
Follow this Question
Related Questions
Player lives script help 1 Answer
C# -- Build character unit from script 1 Answer
C# Randomly Adding Elements from stringListA to stringListB 1 Answer
C# Input.GetKey("Tab") Double Tap 1 Answer
Null in GetValidMethodInfo 0 Answers