void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.name == "Player") { actionRange = true; dataController.AddNPC(this); } }