static RNBridge() { GameObject go = new GameObject("RNListener"); DontDestroyOnLoad(go); Instance = go.AddComponent <RNBridge>(); }
public void CallToNative(RNMessage message) { RNBridge.onUnityMessage(JSON.SerializeAny(message)); }