コード例 #1
0
    void Awake()
    {
        Assets.Scripts.Stats stats = Assets.Scripts.Stats.getInstance();

        ShotsFired.text      += stats.ShotCount.ToString();
        EnemiesDefeated.text += stats.EnemiesDefeated.ToString();
        Precision.text       += stats.Precision.ToString("F2") + "%";
        Score.text           += stats.Score.ToString();
    }
コード例 #2
0
    void Start()
    {
        Assets.Scripts.Stats stats = Assets.Scripts.Stats.getInstance();

        ShotsFired.text      += stats.OverallShotCount.ToString();
        EnemiesDefeated.text += stats.OverallEnemiesDefeated.ToString();
        Precision.text       += stats.OverallPrecision.ToString("F2") + "%";
        Score.text           += stats.OverallScore.ToString();
        DeathCount.text      += stats.OverallDeathCount.ToString();
    }
コード例 #3
0
ファイル: Goal.cs プロジェクト: Therrato/FunnieVliegtVertical
 public Goal(Stats playerGoals)
 {
     this.bananas = playerGoals.bananas;
     this.obstaclesPassed = playerGoals.obstaclesPassed;
     this.feathersCollected = playerGoals.feathersCollected;
     this.duration = playerGoals.duration;
     this.figuresPassed = playerGoals.figuresPassed;
     this.obstaclesHit = playerGoals.obstaclesHit;
     this.tilesPassed = playerGoals.tilesPassed;
 }
コード例 #4
0
ファイル: TentController.cs プロジェクト: Ceshion/Clexa
 void Start()
 {
     stats = gameObject.AddComponent<Stats>();
     stats.Health = 10;
 }