Fixed minor bug in C# core and copied Pubnub.cs to Unity