void Start() { enemyAttributes = GetComponent <_enemyAttributes>(); playerBehavior = GameObject.FindGameObjectWithTag("Player").GetComponent <_playerBehavior>(); }
void Start() { enemyAttributes = GetComponent <_enemyAttributes>(); _rigidbody = GetComponent <Rigidbody2D>(); player = GameObject.FindGameObjectWithTag("Player"); }