Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        particlesScript = transform.GetComponent <particlesGeneration>();
        ballMvtScript   = GetComponent <ballMovement>();

        numberOfGoldChickenFound = 0;
        particles.startColor     = particlesScript.colors[numberOfGoldChickenFound];

        godChickenSpotlights = GameObject.FindGameObjectsWithTag("chicken_god spotlight");

        foreach (GameObject spotlight in godChickenSpotlights)
        {
            spotlight.light.enabled = false;
        }
    }
Esempio n. 2
0
 void Start()
 {
     distToGround    = collider.bounds.extents.y;
     particlesScript = GetComponent <particlesGeneration>();
     currentMaxSpeed = maxSpeed - (particlesScript.colors.Length - 1) * speedWonByGoldChicken;
 }