Example #1
0
 private void Start()
 {
     boxCollider = GetComponent <BoxCollider2D>();
     animation   = GetComponentInChildren <Animation>();
     target      = GameObject.FindGameObjectWithTag("Player").transform;
     GManager.instance.AddEnemy(this);
     enemyDropItem = GetComponent <EnemyDropItem>();
     effectSc      = GetComponent <Effect>();
 }
 private void Start()
 {
     playerSc      = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
     target        = GameObject.FindGameObjectWithTag("Player").transform;
     enemyDropItem = GetComponent <EnemyDropItem>();
 }