Esempio n. 1
0
    public override void OnDeserialize(NetworkReader reader, bool initialState)
    {
        if (initialState)
        {
            this.owner       = GeneratedNetworkCode._ReadInfo_Ragdoll(reader);
            this.allowRecall = reader.ReadBoolean();
            return;
        }
        int num = (int)reader.ReadPackedUInt32();

        if ((num & 1) != 0)
        {
            this.SetOwner(GeneratedNetworkCode._ReadInfo_Ragdoll(reader));
        }
        if ((num & 2) != 0)
        {
            this.SetRecall(reader.ReadBoolean());
        }
    }