Exemple #1
0
 void Start()
 {
     this.gameObject.name = "SquareEnemy";
     _enemyElectrified    = GetComponent <EnemyElectrified>();
     _animator            = GetComponent <Animator>();
     _player = GameObject.FindGameObjectWithTag("Player").transform;
     _rb     = GetComponent <Rigidbody2D>();
 }
Exemple #2
0
 void Start()
 {
     this.gameObject.name = "CircleEnemy";
     _enemyElectrified    = GetComponent <EnemyElectrified>();
     _rb = GetComponent <Rigidbody2D>();
     StartCoroutine(CircleEnemyCoroutine());
     //  _exitPosition = GameObject.FindGameObjectWithTag("Exit").transform;
 }
Exemple #3
0
 void Start()
 {
     this.gameObject.name = "TriangleEnemy";
     _rb = GetComponent <Rigidbody2D>();
     _enemyElectrified = GetComponent <EnemyElectrified>();
 }