19 lines
433 B
C#
19 lines
433 B
C#
using UnityEngine;
|
|
|
|
using RR.Game2D.Core.Managers;
|
|
|
|
namespace RR.Common.Entities.Props
|
|
{
|
|
public class CoinCollectible : Collectible
|
|
{
|
|
public override bool TryPickup(GameObject newOwner, Transform optionalAttachPoint = null)
|
|
{
|
|
base.TryPickup(newOwner, optionalAttachPoint);
|
|
|
|
GameManager.Instance.AddCoin();
|
|
Destroy(gameObject);
|
|
|
|
return true;
|
|
}
|
|
}
|
|
} |