using UnityEngine;
using System;
/**
* 无尽模式分数数据
* @Author: chenxin
* @Date: 2020-11-10 13:55:10
*/
namespace KTGMGemClient
{
public class EndlessScoreData
{
private static int preScore;
///
/// 上一次的分数
///
public static int PreScore
{
get { return preScore; }
}
private static int currentScore;
///
/// 当前获得分数
///
public static int CurrentSocre
{
get { return currentScore; }
set
{
if (value > 9999999) value = 9999999;
else if (value < 0) value = 0;
preScore = currentScore;
currentScore = value;
formatScore = currentScore.ToString().PadLeft(7, '0');
}
}
private static string formatScore = "0000000";
///
/// 格式化的分数显示,7位数显示
///
public static string FormatScore
{
get { return formatScore; }
}
}
}