As per your need, you will not need to write code. Here is the approach:
Use workflow on
Assigned_Resource__c
instead and set evaluation criteria "Every time edited, subsequently meet criteria'Set the condition in formula editor as
ISCHANGED(Campaign Lookup field)
. This condition will return true whenever the field changes and fire workflow action.Set up workflow action "send email".