if (GetComponent.().Raycast(ray,hit,100.0))
{
isClicked=true;
transform.GetComponent("knifeRay01").isHit=true;
transform.GetComponent("knifeRay01").rayPosition=hit.transform.position;
}
在PC平台正常,
但是转成IOS平台后显示:
Assets/script/white/hitByKnife.js(34,70): BCE0019: 'isHit' is not a member of 'UnityEngine.Component'.
Assets/script/white/hitByKnife.js(35,70): BCE0019: 'rayPosition' is not a member of 'UnityEngine.Component'.
Assets/script/white/hitByKnife.js(42,55): BCE0019: 'isRay' is not a member of 'UnityEngine.Component'.
要怎么解决?