コード例 #1
0
        public void OnActionReceived(ActionBuffers actionBuffers)
        {
            var movement = actionBuffers.DiscreteActions[0];

            var direction = 0;

            switch (movement)
            {
            case 1:
                direction = -1;
                break;

            case 2:
                direction = 1;
                break;
            }

            basicController.MoveDirection(direction);
        }