示例#1
0
 public override void ReleaseSelf()
 {
     PlayerStatistics.GetStat().LastBasicEnemyKilled++;
     PlayerStatistics.GetStat().LastCash += 5;
     base.ReleaseSelf();
     gun.StopFire();
 }
示例#2
0
    public void ShowState()
    {
        PlayerStatistics state = PlayerStatistics.GetStat();

        text.text =
            "你摧毁了 " + state.LastBasicEnemyKilled + " 辆敌车\n";
    }
示例#3
0
    protected override void Awake()
    {
        base.Awake();
        state = PlayerStatistics.GetStat();
        DontDestroyOnLoad(this.gameObject);

        ShowMainMenu(true);
    }
示例#4
0
    public void ShowState()
    {
        PlayerStatistics state = PlayerStatistics.GetStat();

        text.text =
            "到目前为止:\n" +
            "你总共赚了 " + state.Cash + " 元\n" +
            "你摧毁了" + state.BasicEnemyKilled + " 名敌人\n";
    }
示例#5
0
 private void Start()
 {
     state = PlayerStatistics.GetStat();
 }