public override void ReleaseSelf() { PlayerStatistics.GetStat().LastBasicEnemyKilled++; PlayerStatistics.GetStat().LastCash += 5; base.ReleaseSelf(); gun.StopFire(); }
public void ShowState() { PlayerStatistics state = PlayerStatistics.GetStat(); text.text = "你摧毁了 " + state.LastBasicEnemyKilled + " 辆敌车\n"; }
protected override void Awake() { base.Awake(); state = PlayerStatistics.GetStat(); DontDestroyOnLoad(this.gameObject); ShowMainMenu(true); }
public void ShowState() { PlayerStatistics state = PlayerStatistics.GetStat(); text.text = "到目前为止:\n" + "你总共赚了 " + state.Cash + " 元\n" + "你摧毁了" + state.BasicEnemyKilled + " 名敌人\n"; }
private void Start() { state = PlayerStatistics.GetStat(); }