private void CheckMigrationAnimationState(int pts) { if (!migrateButton) { migrateButton = FindObjectOfType<MigrateAnimControl>(); } if (pts < 5) { migrateButton.SetIsFullGlow(false); } else { migrateButton.SetIsFullGlow(true); } }
//Declarations + zeroing out critter poulations and energy levels void Awake() { gameControl = FindObjectOfType<GameController>(); turnTimer = FindObjectOfType<TurnTimer>(); player = FindObjectOfType<Player>(); evoList = GetComponent<EvolutionList>(); SplinterXP = 0; transform.parent = GameObject.FindGameObjectWithTag("Critters").transform; completedPhases = 0; tokenDensity = (200 / gameControl.tokenDensity) * size; breedSeason = GameController.breedSeason; SetBreedRate(GameController.breedRate); UpdateStats(); evoButton = FindObjectOfType<EvolutionButton>(); migrateButton = FindObjectOfType<MigrateAnimControl>(); }