public void enableCollisionWithPlayer() { Physics2D.IgnoreCollision(newPlayerController.GetComponent <Collider2D>(), GetComponent <Collider2D>(), false); }