here is my code, which is runs in PC version.
now I’m making its android part.but following codes show some error. what may b the reason?
var hit:ControllerColliderHit;
function OnControllerColliderHit(hit)
{
if(hit.collider.gameObject.tag=="level1")
{
//do something;
}
}
It shows this error:
Assets/tornado/scripts/point_monitor.js(27,24): BCE0019: 'collider' is not a member of 'Object'.