示例#1
0
        //private void SendSwipeToPlayer(int selectedSubScene, SwipeDirection direction)
        //{

        //    PRActions action = PRActions.NULL;
        //    if (direction.Equals(SwipeDirection.Up))
        //    {
        //        action = PRActions.TOUCH_SWIPE_UP;
        //        text.text = "SwipeUp";
        //    }
        //    else if (direction.Equals(SwipeDirection.Down))
        //    {
        //        action = PRActions.TOUCH_SWIPE_DOWN;
        //        text.text = "SwipeDown";
        //    }


        //    ICommand command = CommandFactory.CreateCommandBehaviour()
        //            .WithAction(action)
        //            .Build();

        //    Request request = Request.CreateRequest()
        //        .WithReceiver(m_GameManager.GetReceiver(ReceiverId.Players, selectedSubScene))
        //        .WithCommand(command)
        //        .Build();



        //    Send(request);
        //}

        public void Send(Request request)
        {
            m_GameManager.SendMessage("AddRequest", request);
        }