Example #1
0
 private void OnMouseDown()
 {
     if (IsInteractable() && isDestroyable)
     {
         AddExp?.Invoke(expValue);
         Destroy(gameObject);
     }
 }
Example #2
0
        //增加经验
        public void SEND_CG_REQ_ADD_EXP(uint exp)
        {
            AddExp ip = new Msg.AddExp();

            ip.Exp = exp;
            MemoryStream ms = GetStream();

            AddExp.Serialize(ms, ip);
            Send(MsgId.ID_AddExp, ms);
        }
Example #3
0
 public void Visit(AddExp expression)
 {
     HandleBinaryOperator("+", 4);
 }