I have two files, one is Thrusters.js, the other is FBController.cs.
Thrusters.js resides in …/Assets/_Scripts/
FBController.cs resides in …/Assets/Examples/_landerFB/
I need one of the scripts to access the other - I don’t care which way around it happens.
Hence, I try:
In Thrusters.js
var fbController : FBController;
And I get the following Error:
Assets/_Scripts/Thrusters.js(38,20): BCE0018: The name ‘FBController’ does not denote a valid type (‘not found’).
So, I try it the other way around, in FBController.cs:
public Thrusters thrusterScript;
And I get this:
Assets/Examples/_landerFB/FBController.cs(119,50): error CS0246: The type or namespace name `Thrusters’ could not be found. Are you missing a using directive or an assembly reference?
I can’t move either into Standard Assets or Plugins easily, as they’re both reliant on many other scrips and files (FBController is the Facebook Unity SDK integration for my project).
What am I missing?