예제 #1
0
 void Start()
 {
     rb                = this.gameObject.GetComponent <Rigidbody2D>();
     rbPlayer          = player.GetComponent <Rigidbody2D>();
     target            = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     movimento         = true;
     movimentBehaviour = GameObject.FindGameObjectWithTag("Player").GetComponent <MovimentBehaviour>();
 }
예제 #2
0
 void Start()
 {
     this.moving = false;
     this.attack = false;
     this.isAttackAgain = true;
     this.anim = GetComponent<AnimatorControler>();
     this.enemyMoviment = GetComponent<MovimentBehaviour>();
     this.enemyAttackController = GetComponent<AttackControler>();
 }
예제 #3
0
 void Start()
 {
     this.move = GetComponent<MovimentBehaviour>();
     Destroy(this.gameObject, 4f);
 }