26 lines
486 B
C#
26 lines
486 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BITFALL.Player.Inventory
|
|
{
|
|
public class WorldMoneyService : MonoBehaviour
|
|
{
|
|
public static WorldMoneyService Singleton { get; private set; }
|
|
public WorldMoney Spawn(int money)
|
|
{
|
|
var go = Instantiate(worldMoneyPrefab);
|
|
go.Money = money;
|
|
return go;
|
|
}
|
|
[SerializeField] private WorldMoney worldMoneyPrefab;
|
|
|
|
private void Start()
|
|
{
|
|
Singleton = this;
|
|
}
|
|
}
|
|
}
|
|
|