Exemplo n.º 1
0
 public void Powerbutton()
 {
     if (m_MiniPanel.activeSelf && !m_NormalPanel.activeSelf)
     {
         m_MiniPanel.SetActive(false);
         m_NormalPanel.SetActive(true);
         m_ButtonPanel.transform.parent        = m_NormalAnchorPoint.transform;
         m_ButtonPanel.transform.localPosition = new Vector3(0, 0, 0);
         BePowerData.ShowBePowerItemList();
     }
 }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_POWERUP_LIST packet = (GC_POWERUP_LIST )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            BePowerData.ShowBePowerWithData(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Exemplo n.º 3
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_RES_POWERUP packet = (GC_RES_POWERUP )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            BePowerData.ReciveResPowerData(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }