using UnityEngine; using AX.NetworkSystem; public class CloseSession : MonoBehaviour { void OnDestroy() { NetworkManager.DestroyAllSession(); } }