Custom Type Serialization

Options
Hello everyone,
I know there is already tons of questions about this topic, but i really can't figure out.
I lost like half day to find a solution, and I'm not able to solve this.

I have a custom class called PlayerClass, I use it for my lobby:
public class PlayerClass
    {
        public int playerID;
        public string playerNickname;
        public bool isPlayerReady;
    }

I want to send all data via RPC call, but I know, photon doesn't support custom types automatically.
I tryed to serialize it in CustomTypes.cs (the blueprint), and when I want to Serialize the string, the error appear(cannot convert string to short).

What my script do is:
1. When new player connect, is send his PlayerClass values to MasterClient
2. MasterClient add new player to List(PlayerClass)
3. MasterClient sent to all clients in room the new list of player(and new player get the list of players too)

Someone please can just give me a hint to solve this problem?(Protocol.Serialize of non numeric type like string)
Thanks in advance :)

Comments