Browse Source

automated Coin Placement (untested)

lisa 2 years ago
parent
commit
244d913724
3 changed files with 280 additions and 90 deletions
  1. 0 3
      Assets/Coin/CoinCollection.cs
  2. 279 87
      Assets/Scenes/MainScene.unity
  3. 1 0
      ProjectSettings/TagManager.asset

+ 0 - 3
Assets/Coin/CoinCollection.cs

@@ -12,7 +12,6 @@ public class CoinCollection : MonoBehaviour
     void Start()
     {
         coinPool = GameObject.FindGameObjectWithTag("CoinPool").GetComponent<CoinPool>();
-        spawn = GameObject.FindGameObjectWithTag("Route").GetComponent<CoinCreation>();
     }
 
     // Update is called once per frame
@@ -32,8 +31,6 @@ public class CoinCollection : MonoBehaviour
             var bike = other.gameObject;
             bike.GetComponent<PlayerStats>().IncreaseCoinCounter();
             coinPool.ReturnToPool(gameObject);
-            //sobald ein coin eingesammelt einen neuen erstellen/platzieren
-            spawn.UpdateCoins();
         }
     }
 }

File diff suppressed because it is too large
+ 279 - 87
Assets/Scenes/MainScene.unity


+ 1 - 0
ProjectSettings/TagManager.asset

@@ -12,6 +12,7 @@ TagManager:
   - street_uneven
   - HMDTracker
   - CoinPool
+  - Route
   layers:
   - Default
   - TransparentFX

Some files were not shown because too many files changed in this diff