PhotonPlayer.InternalCacheProperties C# (CSharp) Method

InternalCacheProperties() private method

Caches custom properties for this player.
private InternalCacheProperties ( Hashtable properties ) : void
properties Hashtable
return void
    internal void InternalCacheProperties(Hashtable properties)
    {
        if (properties == null || properties.Count == 0 || this.customProperties.Equals(properties))
        {
            return;
        }

        if (properties.ContainsKey(ActorProperties.PlayerName))
        {
            this.nameField = (string)properties[ActorProperties.PlayerName];
        }

        this.customProperties.MergeStringKeys(properties);
        this.customProperties.StripKeysWithNullValues();
    }