Skip to content

Commit

Permalink
Merge pull request #1618 from Doprez/fix-begginner-errors
Browse files Browse the repository at this point in the history
fixed constructors in CsharpBeginner template
  • Loading branch information
manio143 committed Feb 25, 2023
2 parents 0635a32 + fd6a89f commit fad834e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -24,7 +24,7 @@ public override void Start()

// We add the entities to a new entity that we can use a parent
// We can easily position and rotate the parent entity
var pileOfBoxesParent = new Entity(new Vector3(0, 0, -2), "PileOfBoxes2");
var pileOfBoxesParent = new Entity("PileOfBoxes2", new Vector3(0, 0, -2));
pileOfBoxesParent.Transform.Rotation = Quaternion.RotationY(135);
foreach (var entity in pileOfBoxesInstance2)
{
Expand Down
Expand Up @@ -68,7 +68,7 @@ private void CreateEntityWithModelAndRandomlyPositionInScene()
var randomPosition = new Vector3(random.Next(-2, 4), 0, random.Next(-2, 2));

// Create a new entity and attach a model component
var entity = new Entity(randomPosition, "My new entity with a model component");
var entity = new Entity("My new entity with a model component", randomPosition);
entity.Add(modelComponent);

// Add the new entity to the current tutorial scene
Expand Down

0 comments on commit fad834e

Please sign in to comment.