1234567891011121314151617181920 |
- #if UNITY_EDITOR_WIN || UNITY_EDITOR_OSX || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_IOS || UNITY_ANDROID
- using UnityEngine;
- using System.Collections;
- namespace Agora.Rtc
- {
- public class AgoraGameObject : MonoBehaviour
- {
- void OnApplicationQuit()
- {
- IRtcEngine rtcEngine = RtcEngine.Get();
- if (rtcEngine != null)
- {
- rtcEngine.Dispose();
- }
- }
- }
- }
- #endif
|