From 8260c6f9c5674564a633626ca2bcac07c4c0c1ea Mon Sep 17 00:00:00 2001 From: M-Lampert Date: Mon, 29 May 2017 09:50:30 +0200 Subject: [PATCH] Bug fix Endlosmodus --- Platformer_001/Assets/Scripts/Endlosmodus/Endlosmodus.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Platformer_001/Assets/Scripts/Endlosmodus/Endlosmodus.cs b/Platformer_001/Assets/Scripts/Endlosmodus/Endlosmodus.cs index cd9ea22..d7a9812 100644 --- a/Platformer_001/Assets/Scripts/Endlosmodus/Endlosmodus.cs +++ b/Platformer_001/Assets/Scripts/Endlosmodus/Endlosmodus.cs @@ -34,6 +34,7 @@ public class Endlosmodus : MonoBehaviour { void Start () { spawnedTiles = new List(); spawnedTilesGround = new List (); + spawnedTilesGround.Add(Instantiate(Instantiate (ground, new Vector3 (-100,-100 , 0), new Quaternion ()))); for (int i = 1; i <= 20; i = i + 2) { lastX = i - 10; GameObject tile = Instantiate (grass, new Vector3 (i - 10, 0, 0), new Quaternion ());