added coins
This commit is contained in:
1 parent
4a8a8ae916
commit
9e5f46b48c
37 files changed
+7536
-79
No files matched your search
@@ -72,5 +72,15 @@ namespace Code.Gameplay.Player
|
||||
{
|
||||
forwardSpeed += amount;
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider foreign)
|
||||
{
|
||||
if (foreign.CompareTag("Coin"))
|
||||
{
|
||||
UI.GameplayController.Instance.AddCoin();
|
||||
|
||||
Destroy(foreign.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user