public bool Serialize(BreakTile packet) { bool ret = true; bool act = packet.Act; ret &= Serialize(act); return(ret); }
public void OnReceiveBreakTile(int node, byte[] data) { BreakTilePacket packet = new BreakTilePacket(data); BreakTile tile = packet.GetPacket(); bool act = tile.Act; if (act) { Sound.PlayOneShot(Sound.clip); Paper.gameObject.transform.position = new Vector3(-4.2072f, -3.3f, 3.33278f); Destroy(gameObject); } }
public bool Deserialize(ref BreakTile element) { if (GetDataSize() == 0) { return(false); } bool ret = true; bool act = false; ret &= Deserialize(ref act); element.Act = act; return(ret); }