Version: 2020.3
언어: 한국어

MonoBehaviour.OnPlayerDisconnected(NetworkPlayer)

매뉴얼로 전환

설명

Called on the server whenever a player disconnected from the server.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnPlayerDisconnected(NetworkPlayer player) { Debug.Log("Clean up after player " + player);

Network.RemoveRPCs(player); Network.DestroyPlayerObjects(player); } }