I’m confused why this is not working. I’ve created a bare bones class with a function called Print()
public class Test {
public function Print() {
print ('testing');
}
}
And trying to create an instance of the object and call the Print function in it.
#pragma strict
function Start () {
var testClass = new Test();
testClass.Print();
}
function Update () {
}
Why does ‘testing’ not get printed to the console?