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