How to use publisher and subscriber codes in a same script in unity3d?

My publisher and subscriber scripts are made from Solace Github…

Now ,I should run both of them is a same script in a same unity file, I would apricated it If someone can help me ?