Ejemplo n.º 1
0
    public void BirdScore()
    {
        if (gameOver)
        {
            return;
        }
        score++;
        ScoreText.text = "Score: " + score.ToString();
        pointSound.Play();
        if (score % scoreTheshold == 0)
        {
            super   += 1;
            isSwitch = true;
            D2FogsPE d = Camera.main.GetComponent <D2FogsPE>();
            isFog = !isFog;
            if (isFog)
            {
                d.Density = 1f;
            }
            else
            {
                d.Density = 0f;
            }

            scrollSpeed *= alpha;
            spawnRate   *= alphaSpawn;
            GetComponent <ColumnPool>().spawnRate = spawnRate;
        }
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     fogsPE = camera.GetComponent <D2FogsPE>();
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     d2 = FindObjectOfType(typeof(D2FogsPE)) as D2FogsPE;
 }
Ejemplo n.º 4
0
 void Start()
 {
     playerAnimator = GetComponent <Animator>();
     playerRB       = GetComponent <Rigidbody2D>();
     D3             = FindObjectOfType(typeof(D2FogsPE)) as D2FogsPE;
 }
Ejemplo n.º 5
0
 // Start is called before the first frame update
 void Start()
 {
     ativarNeblina = FindObjectOfType(typeof(AtivarNeblina)) as AtivarNeblina;
     d2            = FindObjectOfType(typeof(D2FogsPE)) as D2FogsPE;
 }