Project
This commit is contained in:
1 parent
e1a474d4ac
commit
24b1157026
164 files changed
+68527
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Code.GameplayServices;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.PassingObjects
|
||||
{
|
||||
public class Coin : PassingObject
|
||||
{
|
||||
[SerializeField] private int countOnActivate;
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
PlayerScoreService.Instance.AddScore(countOnActivate);
|
||||
PassingObjectsManager.Instance.KillChild(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user