Version: 2022.3
言語: 日本語

MonoBehaviour.OnDisconnectedFromServer(NetworkDisconnection)

マニュアルに切り替える

説明

サーバーとの接続が失われたか切断されたときにクライアント上で呼び出されます

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnDisconnectedFromServer(NetworkDisconnection info) { Debug.Log("Disconnected from server: " + info); } }