Script working for standard FPS controller not mobile FPS controller

function OnControllerColliderHit (hit : ControllerColliderHit) {
if(hit.collider.gameObject == GameObject.Find(“Cube”)){

This is a simple script i attached to my First Person Controller prefab, when i attached the same script to the First Person Controller prefab from the mobile standard assets it ceases to work.

Is there any reason for this? If im scripting wrong for Ios can someone direct me to a source that can help me please?

Thanks in advance :slight_smile:

Is it crashing? I had this problem once, turned out my next level had unsupported game objects (for example, cloth physics) in it. Even if it’s “disabled”, it fails on Application.LoadLevel, even though it does work when you set that level as the first active level.