Exemplo n.º 1
0
        private void ProcessInput(double time, double mouseX, List <InputEnum> inputList, int clientId)
        {
            Debug.Log("Received input");
            BallController ballController = _balls.Find(ball => ball.GetBall().ClientId.Equals(clientId));

            if (ballController != null)
            {
                ballController.ApplyInput(time, inputList);

                /*if (inputList.Contains(InputEnum.ClickLeft))
                 * {
                 *  Projectile newProjectile =
                 *      _objectFactory.CreateProjectile(ballController.GetBall().Position, clientId, false);
                 *  _projectileCreationRequests.Enqueue(newProjectile);
                 * }*/
            }
        }