private void Start() { SelectMonster(initialSelectedMonster); this.cam = Camera.main; this.spawns = GameObject.FindGameObjectsWithTag("Spawn").Select(go => go.GetComponent <BoxCollider2D>()).ToList(); this.terrorBank = GameObject.Find("TerrorBank").GetComponent <TerrorBank>(); buttons = GameObject.FindObjectsOfType <UnityEngine.UI.Button>(); clock = GameObject.FindObjectOfType <Clock>(); }
private void Start() { SelectMonster(initialSelectedMonster); this.cam = Camera.main; this.spawns = GameObject.FindGameObjectsWithTag("Spawn").Select(go => go.GetComponent<BoxCollider2D>()).ToList(); this.terrorBank = GameObject.Find("TerrorBank").GetComponent<TerrorBank>(); buttons = GameObject.FindObjectsOfType<UnityEngine.UI.Button>(); clock = GameObject.FindObjectOfType<Clock>(); }
// 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); }
// 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() { bank = GameObject.FindObjectOfType <TerrorBank>(); }
void Start() { bank = GameObject.FindObjectOfType<TerrorBank>(); }