// Update is called once per frame void Update() { if (GameObject.Find("UAVs Caught")) { GameObject.Find("UAVs Caught").GetComponent <Text> ().text = GameController.objectiveGained.ToString(); } if (GameController.started) { controlLITHTutorial(); } if (spawningBirds) { if (GameController.gameClock - lastSpawn >= 7f) { lastSpawn = GameController.gameClock; birdGenerator.makeBird("right"); } } if (GameObject.Find("landingCircle")) { landingCircle.transform.Rotate(new Vector3(0f, 0f, 0.75f)); } }
void Update() { if (Time.time % 20 > 19 && !birdSpawned) { birdGenerator.makeBird("right"); birdSpawned = true; } if (Time.time % 20 < 1 && birdSpawned) { birdSpawned = false; } if (Time.timeSinceLevelLoad > 30 && !otterSpawned) { OtterGenerator.createOtter(new Vector3(1.9f, -4f)); Destroy(GameObject.Find("Region").gameObject); otterSpawned = true; } }