Let’s say I have 2 files:
MyClass.cs
using UnityEngine;
class MyClass{
…
}
otherfile.js
var myvar : MyClass;
When I try to create an instance of MyClass from jscript, it give the following error:
BCE0018: The Name MyClass does not denote a valid type
What am I doing wrong??