Пример #1
0
    void CmdFetchPlayerInfo()
    {
        PlayerInfoManager pim        = GameObject.Find("PlayerInfoManager").GetComponent <PlayerInfoManager>();
        PlayerInfo        serverInfo = pim.getPlayerInfo(identity.connectionToClient);

        NetworkWriter writer = new NetworkWriter();

        serverInfo.Serialize(writer);

        TargetSetPlayerInfo(identity.connectionToClient, writer.AsArray());
    }