|
@@ -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();
|
|
|
}
|
|
|
}
|
|
|
}
|