** birds[i].transform.position = originPos;
birds[i].enabled = true;
birds[i].sp.enabed = true;
birds[i].canMove = true;
}
else
{
birds[i].enabled = false;
birds[i].sp.enabled = false;
birds[i].canMove = false;
}
}
}
public void NextBird() ... }
问题:
Assets/scrabts/jz.cs(47,26): error CS0122: bird.sp' is inaccessible due to its protection level Assets/scrabts/jz.cs(48,26): error CS1061: Type
bird' does not contain a definition for canMove' and no extension method
canMove' of type bird' could be found. Are you missing an assembly reference? Assets/scrabts/jz.cs(53,26): error CS0122:
bird.sp' is inaccessible due to its protection level
Assets/scrabts/jz.cs(54,26): error CS1061: Type bird' does not contain a definition for
canMove' and no extension method canMove' of type
bird' could be found. Are you missing an assembly reference?
}
你这一堆错,第一个报错可能是你的bird类的sp定义成private类型了,第二个canMove要么也是定义成private类型,要么就没写。。。。。。