void Start() { birdGenerator = GameObject.Find("egg2").GetComponent <BirdGenerator>(); birdGenerator.automaticBirdSetting(false); GameController.inPlay = true; otterSpawned = false; }
// Use this for initialization void Start() { GameController.isTutorial = true; print("LTIH_Tut Tutorial Set"); GameController.missionDiff = "Tutorial"; GameController.missionInitials = "LITH"; tutorialState = 0; spawningBirds = false; lastSpawn = 0f; GameObject.Find("UAVs Needed").GetComponent <Text>().text = Difficulty.objectiveNeeded.ToString(); birdGenerator = GameObject.Find("Bird Generator").GetComponent <BirdGenerator>(); birdGenerator.automaticBirdSetting(false); Instantiate(Resources.Load <GameObject>("UIPrefabs/LITHTutorial")); GameController.challenge = "Learn how to catch!"; tutorialScript = GameObject.Find("LITHTutorial(Clone)").GetComponent <TutorialController>(); tutorialScript.automaticTutorialSetting(false); batteryPanel = GameController.buildGameObject("UIPrefabs/BatteryPanel", new Vector2(-25f, -35f), new Vector2(25f, 35f)); batteryPanel.GetComponent <RectTransform>().anchoredPosition = new Vector2(-25f, -35f); batteryPanel.transform.SetAsFirstSibling(); landingCircle = new GameObject(); SpriteRenderer renderer = landingCircle.AddComponent <SpriteRenderer>(); renderer.sprite = Resources.Load <Sprite>("Sprites/white-dotted-circle"); renderer.sortingLayerName = "Foreground"; renderer.sortingOrder = 10; renderer.color = new Vector4(0f / 255f, 197f / 255f, 58f / 255f, 1f); renderer.transform.parent = GameObject.Find("Hand").transform; landingCircle.transform.localPosition = new Vector2(0f, 0f); landingCircle.transform.localScale = new Vector2(2f, 2f); landingCircle.name = "landingCircle"; }