mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
16 lines
367 B
C#
16 lines
367 B
C#
namespace MoleMole
|
|
{
|
|
public class CoinActor : BaseGoodsActor
|
|
{
|
|
public float scoinReward;
|
|
|
|
public override void DoGoodsLogic(uint avatarRuntimeID)
|
|
{
|
|
BaseMonoAvatar localAvatar = Singleton<AvatarManager>.Instance.GetLocalAvatar();
|
|
localAvatar.PickupCoin(runtimeID);
|
|
Singleton<LevelScoreManager>.Instance.scoinInside += scoinReward;
|
|
Kill();
|
|
}
|
|
}
|
|
}
|