// Use this for initialization private void Start() { this.villageStats = this.VillageStats.GetComponent <VillageStats>(); this.clock = this.Clock.GetComponent <Clock>(); this.terrorBank = this.TerrorBank.GetComponent <TerrorBank>(); this.player = this.LoadPlayer(); if (this.IsTesting) { this.terrorBank.AddTerror(this.ExtraTerror); return; } var extraTerror = this.player.Levels .Where(l => l.LevelNumber < this.CurrentLevel) .Sum(l => l.TerrorRating); this.terrorBank.AddTerror(extraTerror); }
void Start() { villageStats = FindObjectOfType<VillageStats>(); image = GetComponent<Image>(); image.sprite = unachieved; }
// Use this for initialization private void Start() { this.villageStats = this.VillageStats.GetComponent<VillageStats>(); this.clock = this.Clock.GetComponent<Clock>(); this.terrorBank = this.TerrorBank.GetComponent<TerrorBank>(); this.player = this.LoadPlayer(); if(this.IsTesting) { this.terrorBank.AddTerror(this.ExtraTerror); return; } var extraTerror = this.player.Levels .Where(l => l.LevelNumber < this.CurrentLevel) .Sum(l => l.TerrorRating); this.terrorBank.AddTerror(extraTerror); }
private void OnVillageSelect(GameObject o) { Show(); _stats = o.GetComponent <VillageStats>(); }
void Start() { textWidget = GetComponent<UnityEngine.UI.Text>(); villageStats = FindObjectOfType<VillageStats>(); }
void Start() { villageStats = FindObjectOfType <VillageStats>(); image = GetComponent <Image>(); image.sprite = unachieved; }
void Start() { textWidget = GetComponent <UnityEngine.UI.Text>(); villageStats = FindObjectOfType <VillageStats>(); }