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