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()); }
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()); }
public override void Deserialize(ByteProtocol protocol) { name = protocol.getString(); base.Deserialize(protocol); }