// Use this for initialization void Awake() { health = 1; wavesScript = GameObject.Find("WorldBounds").GetComponent <Waves> (); summonTheCrowsScript = GameObject.Find("WorldBounds").GetComponent <SummonTheCrows> (); gutSplosionParentString = "Prefabs/Birds/GutSplosionParent"; gutSplosions = new string[] { "Prefabs/GutSplosions/GutSplosion1a", //small birds //0 "Prefabs/GutSplosions/GutSplosion2a", //medium birds //1 "Prefabs/GutSplosions/GutSplosion2b", //1 "Prefabs/GutSplosions/GutSplosion2c", //2 "Prefabs/GutSplosions/GutSplosion2d", //3 "Prefabs/GutSplosions/GutSplosion2e", //4 "Prefabs/GutSplosions/GutSplosion3a", //big birds //5 "Prefabs/GutSplosions/GutSplosion3b", //6 }; if (GetComponent <BabyCrow> ()) { birdType = 5; gutValue = 3; summonCrows = true; } if (GetComponent <Pigeon>()) { birdType = 0; gutValue = 3; } else if (GetComponent <Duck> ()) { birdType = 1; gutValue = 5; } else if (GetComponent <Crow>()) { birdType = 2; health = 1; gutValue = 7; } else if (GetComponent <Eagle>()) { birdType = 3; health = 2; gutValue = 9; } else if (GetComponent <Albatross>()) { birdType = 4; health = 7; gutValue = 11; } balloonBasketScript = GameObject.Find("BalloonBasket").GetComponent <BalloonBasket> (); }
// Use this for initialization void Awake() { balloonBasketScript = GameObject.Find ("BalloonBasket").GetComponent<BalloonBasket> (); popping = false; if (name == "PinkBalloon"){ balloonNumber = 0; } else if (name == "TealBalloon"){ balloonNumber = 1; } else if (name == "GreyBalloon"){ balloonNumber = 2; } }
// Use this for initialization void Awake() { balloonBasketScript = GameObject.Find("BalloonBasket").GetComponent <BalloonBasket> (); popping = false; if (name == "PinkBalloon") { balloonNumber = 0; } else if (name == "TealBalloon") { balloonNumber = 1; } else if (name == "GreyBalloon") { balloonNumber = 2; } }
// Use this for initialization void Awake() { rigbod = GetComponent<Rigidbody2D> (); balloonBasketScript = GameObject.Find ("BalloonBasket").GetComponent<BalloonBasket>(); murderScript = transform.parent.gameObject.GetComponent<Murder>(); startPosition = transform.position; moveSpeed = 7.5f; turnDistance = 1.5f; commitDistance = 6f; resetDistance = 20f; sin45 = Mathf.Sin (Mathf.Deg2Rad * 75f); correctionScalar = sin45 / (sin45 - 1f); correctionVector = new Vector2 (sin45, sin45 + correctionScalar); int i = 0; targetTransform = GameObject.Find ("Jai").transform; extraTargetHeight = Vector3.up * 1.3f; lastDistance = 100f; }
// Use this for initialization void Awake() { rigbod = GetComponent <Rigidbody2D> (); balloonBasketScript = GameObject.Find("BalloonBasket").GetComponent <BalloonBasket>(); murderScript = transform.parent.gameObject.GetComponent <Murder>(); startPosition = transform.position; moveSpeed = 7.5f; turnDistance = 1.5f; commitDistance = 6f; resetDistance = 20f; sin45 = Mathf.Sin(Mathf.Deg2Rad * 75f); correctionScalar = sin45 / (sin45 - 1f); correctionVector = new Vector2(sin45, sin45 + correctionScalar); int i = 0; targetTransform = GameObject.Find("Jai").transform; extraTargetHeight = Vector3.up * 1.3f; lastDistance = 100f; }
// Use this for initialization void Awake() { health = 1; wavesScript = GameObject.Find ("WorldBounds").GetComponent<Waves> (); summonTheCrowsScript = GameObject.Find ("WorldBounds").GetComponent<SummonTheCrows> (); gutSplosionParentString = "Prefabs/Birds/GutSplosionParent"; gutSplosions = new string[]{ "Prefabs/GutSplosions/GutSplosion1a", //small birds //0 "Prefabs/GutSplosions/GutSplosion2a", //medium birds //1 "Prefabs/GutSplosions/GutSplosion2b", //1 "Prefabs/GutSplosions/GutSplosion2c", //2 "Prefabs/GutSplosions/GutSplosion2d", //3 "Prefabs/GutSplosions/GutSplosion2e", //4 "Prefabs/GutSplosions/GutSplosion3a", //big birds //5 "Prefabs/GutSplosions/GutSplosion3b", //6 }; if (GetComponent<BabyCrow> ()) { birdType = 5; gutValue = 3; summonCrows = true; } if (GetComponent<Pigeon>()){ birdType = 0; gutValue = 3; } else if (GetComponent<Duck> ()) { birdType = 1; gutValue = 5; } else if (GetComponent<Crow>()){ birdType = 2; health = 1; gutValue = 7; } else if (GetComponent<Eagle>()){ birdType = 3; health = 2; gutValue = 9; } else if (GetComponent<Albatross>()){ birdType = 4; health = 7; gutValue = 11; } balloonBasketScript = GameObject.Find ("BalloonBasket").GetComponent<BalloonBasket> (); }