Пример #1
0
 public override void Execute()
 {
     ObstaclesPlacementSubPhase.PlaceObstacle(
         GetString("name"),
         new Vector3(float.Parse(GetString("positionX")), 0, float.Parse(GetString("positionZ"))),
         new Vector3(float.Parse(GetString("rotationX")), float.Parse(GetString("rotationY")), float.Parse(GetString("rotationZ")))
         );
 }
        public override void Execute()
        {
            string obstacleName = GetString("name");

            Console.Write($"Obstacle is placed: {obstacleName}");

            ObstaclesPlacementSubPhase.PlaceObstacle
            (
                obstacleName,
                new Vector3
                (
                    float.Parse(GetString("positionX"), CultureInfo.InvariantCulture),
                    0,
                    float.Parse(GetString("positionZ"), CultureInfo.InvariantCulture)
                ),
                new Vector3
                (
                    float.Parse(GetString("rotationX"), CultureInfo.InvariantCulture),
                    float.Parse(GetString("rotationY"), CultureInfo.InvariantCulture),
                    float.Parse(GetString("rotationZ"), CultureInfo.InvariantCulture)
                )
            );
        }