_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/PlayerInfo.cs

35 lines
632 B
C#
Raw Normal View History

2024-11-13 18:01:18 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerInfo : MonoBehaviour
{
public static PlayerInfo instance;
public float Money = 1000;
// Start is called before the first frame update
void Start()
{
instance = this;
}
public bool SetMoney(float add)
{
if (Money+add>=0)
{
Money += add;
EggNum.instance.SetEggNumText();
return true;
}
Debug.Log(<><C7AE><EFBFBD><EFBFBD>");
return false;
}
// Update is called once per frame
void Update()
{
}
}