- Home /
Unity Noob: Unknown identifier error after building project on Android platform.
I'm building an Fps that I intend to put on multiple platforms, and I wanted to test it on android, but when I changed the build settings to android 2 Unknown Identifier errors popped up on the AI script. I'm curious why the script won't work in the android build like it did in the PC build, and what I have to do to get it working on that platform.
The first unknown identifier error is the CameraKick
playerObj = Camera.main.transform.GetComponent(CameraKick).playerObj;
attackRangeAmt = attackRange;
initMove = Time.time;
objectWithAnims.animation.CrossFade("idle", 0.3);
// Auto setup player as target through tags
if(target == null && GameObject.FindWithTag("Player") && targetPlayer){
target = GameObject.FindWithTag("Player").transform;
}
The second identifier error is the FPSRigidBodyWalker
function CanSeeTarget () : boolean {
var FPSWalker = playerObj.GetComponent(FPSRigidBodyWalker);
if(FPSWalker.crouched){
attackRangeAmt = attackRange * sneakRangeMod;//reduce NPC's attack range by sneakRangeMod amount when player is sneaking
}else{
attackRangeAmt = attackRange;
}
Comment
Your answer
Follow this Question
Related Questions
Mobile FPS Help 0 Answers
Best FPS cap for mobile builds 1 Answer
MOBILE - FPS Camera Rotation HELP 0 Answers
Is changing 60 FPS into 30 FPS affects time in coroutines? 0 Answers
Does This Support Mobile ? 1 Answer