Selaa lähdekoodia

Slight improvement and typos before recording

Jorn Theunissen 6 vuotta sitten
vanhempi
sitoutus
695b350322

+ 1 - 3
Tutorials/Tutorials/Basics/GettingTheEntity.cs

@@ -15,7 +15,6 @@ namespace Tutorials.Basics {
             //We store the name of the Entity that we are attached to
             name = Entity.Name;
 
-
             //We retrieve the parent entity by using the GetParent() command.
             Entity parentEntity = Entity.GetParent();
 
@@ -25,12 +24,11 @@ namespace Tutorials.Basics {
                 parentName = parentEntity.Name;
             }
 
-
             //The above code can be shortened to 1 line by using the '?' operator  
             parentName = Entity.GetParent()?.Name;
         }
 
-        //Updates avery frame
+        //Updates every frame
         public override void Update() {
             //Using the 'DebugText.Print' command, we can quickly print information to the screen
             DebugText.TextColor = Color.Red;

+ 8 - 4
en/template/styles/main.css

@@ -28,6 +28,10 @@ footer {
   z-index: auto;
 }
 
+footer .inner-footer p{
+    max-width: none;
+}
+
 /* Updated style for menu items */
 
 .toc .level1 > li {
@@ -589,12 +593,12 @@ h5{
 .xk-documentation-list .xk-documentation-image img{
     max-width: 128px;
 }
+.xk-documentation-list  li:nth-child(1) .xk-documentation-chapter, .xk-documentation-list  li:nth-child(4) .xk-documentation-chapter{
+    padding-left: 20px;
+}
 .xk-documentation-list li:nth-child(2) .xk-documentation-image img, .xk-documentation-list li:nth-child(3) .xk-documentation-image img{
     max-width: 165px;
-    max-width: 165px;
-}
-.xk-documentation-list  li:nth-child(1) .xk-documentation-chapter, .xk-documentation-list  li:nth-child(4) .xk-documentation-chapter{
-    padding-left: 40px;
+    padding-left: -20px;
 }
 
 @media only screen and (max-width: 768px){

+ 2 - 3
en/tutorials/csharpbasics/entity.md

@@ -1,11 +1,10 @@
 # Getting the entity 
-This C# basics tutorial covers how to get the entity object.
+You can find this sample in the tutorial project: **Scenes** -> **Basics** -> **1-Getting an entity** 
 
 ## Explanation
-When a script is attached to an entity in the scene, we can access all properties of that Entity by using the 'Entity' property. We can for instance get the entity's name or we can check if the entity has a parent in the scene.
+This C# basics tutorial covers how to get the entity object. When a script is attached to an entity in the scene, we can access all properties of that Entity by using the 'Entity' property. We can for instance get the entity's name or we can check if the entity has a parent in the scene.
 
 ![Getting the entity example](media/getting-the-entity.png)
 
 ## Code
-You can find this sample in the tutorial project 
 [!code-csharp[Entity](..\..\..\Tutorials\Tutorials\Basics\GettingTheEntity.cs)]

+ 1 - 1
en/tutorials/csharpbasics/index.md

@@ -10,7 +10,7 @@ You can try out each individual script in by creating a new project and use the
 * [Editor properties](editorproperties.md) 
 * [Get component](getcomponent.md) 
 * [DeltaTime](deltaTime.md) 
-* [Instianting entities](instantiatingentities.md) 
+* [Instantiating entities](instantiatingentities.md) 
 * [Destroing entities](destroyingentities.md) 
 * [Look at](lookAt.md) 
 * [GetKey](getKey.md)