Exemple #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();
    }
Exemple #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();
    }
 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;
 }
Exemple #4
0
 void Start()
 {
     stats = gameObject.AddComponent<Stats>();
     stats.Health = 10;
 }