示例#1
0
        public bool Serialize(BreakTile packet)
        {
            bool ret = true;
            bool act = packet.Act;

            ret &= Serialize(act);

            return(ret);
        }
示例#2
0
    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);
        }
    }
示例#3
0
        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);
        }