PhotonPlayer.ToString C# (CSharp) Method

ToString() public method

Gives the name.
public ToString ( ) : string
return string
    public override string ToString()
    {
        return (this.name == null) ? string.Empty : this.name;    // +" " + SupportClass.HashtableToString(this.CustomProperties);
    }

Usage Example

コード例 #1
0
    /* De-spawning/disconnection. */

    /**
     * Removes disconnected players locally.
     * PUN calls this method automatically on other clients.
     */
    void OnPhotonPlayerDisconnected(PhotonPlayer disconnected)
    {
        Debug.Log("Player " + disconnected.ToString() + " disconnected.");

        RemovePlayerFromList(disconnected, playersInLobby);
        RemovePlayerFromList(disconnected, playersInGame);
    }
All Usage Examples Of PhotonPlayer::ToString