Exemplo n.º 1
0
 void Start()
 {
     player       = this.GetComponent <Enemy>().player;
     calculations = player.GetComponent <AttackCalculate> ();
     controller   = this.GetComponent <NPCPatrolController2D> ();
     playerLayer  = LayerMask.GetMask("Player");
 }