- Home /
can someone help me to convert this from pc to mobile platform
im getting this error on mobile platform: 'GetComponent' is not a member of 'Object'
for (stage = 2; stage <= cells.length; stage++) //check the stage no.
{
for (i = 0; i <= cells.length - 1; i++) //
{
if (doorsToCells[i] == stage - 1)
for (var checkDoor : GameObject in cells[i].GetComponent(AIpathCellScript).doors) //
{
if (checkDoor != gameObject)
{
for (var checkCell : GameObject in checkDoor.GetComponent(AIpathDoorScript).imediateCells)
{
for (var j : int = 0; j <= cells.length - 1; j++)
{
if (cells[j] == checkCell && doorsToCells[j] == null)
doorsToCells[j] = stage;
}
}
}
}
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613080028im_/https://answers.unity.com/themes/thub/images/avi.jpg)