How do I listen for this event? If tried the following, but the console threw an error stating that it could not find the method:
[HarmonyPatch(typeof(PawnRelationWorker_Lover), "OnRelationCreated")]
public static class PawnRelationWorker_OnRelationCreated
{
public static void Postfix(Pawn firstPawn, Pawn secondPawn)
{
//My Code
}
}
What am I doing wrong?
[HarmonyPatch(typeof(PawnRelationWorker_Lover), "OnRelationCreated")]
public static class PawnRelationWorker_OnRelationCreated
{
public static void Postfix(Pawn firstPawn, Pawn secondPawn)
{
//My Code
}
}
What am I doing wrong?