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