Esempio n. 1
0
 public override void Deserialize(ByteProtocol protocol)
 {
     Weaponname = protocol.getString();
     WeaponInfo = protocol.getString();
     uiIcon     = IdToObj <Sprite>(protocol.getInt32());
     idleAnim   = IdToObj <AnimationClip>(protocol.getInt32());
     ItemPrefab = IdToObj <GameObject>(protocol.getInt32());
 }
Esempio n. 2
0
 public override void Deserialize(ByteProtocol protocol)
 {
     skillname         = protocol.getString();
     skillInfo         = protocol.getString();
     uiIcon            = IdToObj <Sprite>(protocol.getInt32());
     useOverAnim       = IdToObj <AnimationClip>(protocol.getInt32());
     useOverAnimSspeed = protocol.getRatio().ToFloat();
     ItemPrefab        = IdToObj <GameObject>(protocol.getInt32());
 }
Esempio n. 3
0
    public override void Deserialize(ByteProtocol protocol)
    {
        name = protocol.getString();

        base.Deserialize(protocol);
    }