The name AnimationController does not denote a valid type

Hello all,

I have imported the TapControl.js (attached) script from the Penelope Unity for iPhone sample project. As soon as I import this script It raises an error such as:

BCE0018: The name ‘AnimationController’ does not denote a valid type. Did you mean ‘UnityEngine.AnimationState’?

The first time this is used is on line 41 of TapControl.js at when declaring a variable…
private var animationController : AnimationController;

I have looked at the Unity for iPhone online object model and it is true that I cannot find an ‘AnimationController’ object.

Anyone have an update of TapControl.js that doesn’t throw an error or advice on how to fix this?

Thank you

393362–13497–$tapcontrol_810.js (12.5 KB)

The class is defined in the file AnimationController.js (generally, a JS file defines a class with the same name as the file but without the .js). You need to add that file to your project along with TapControl.js.