Example #1
0
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(this);
        }

#if UNITY_EDITOR
        pluginBridge = new EditorNotifyBridge();
#elif UNITY_ANDROID
        pluginBridge = new AndroidNotifyBridge();
#elif UNITY_IOS
        pluginBridge = new IosNotifyBridge();
#endif

        DontDestroyOnLoad(this);
    }
Example #2
0
 private void LocalNotify_Clicked(object sender, EventArgs e)
 {
     LocalNotify?.Invoke();
 }