Question by
importguru88 · Feb 24, 2016 at 05:00 PM ·
javascriptenemyjavaattackenemyai
Error : BCE0018 Enemy ai
I'm to trigger the attack animation on my enemy ai . I made a few changes and got some errors here and their . I am down to one error. Can any please help me ? I don't understand this error.
Here is my java script:
var attack : animation;
function OnTriggerEnter (player : Collider) { GetComponent.();
if(player.tag=="Player")
animation.Play("attack");
}
Comment
Your answer
Follow this Question
Related Questions
Gaining experience from enemies killed? 1 Answer
Enemy Ai Set up java 0 Answers
My enemy is not moving 0 Answers
Move Button as soon as its klicked to the bottom Screen 1 Answer
Unity5 Collider error 0 Answers