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; } }
// Use this for initialization void Start() { fogsPE = camera.GetComponent <D2FogsPE>(); }
// Start is called before the first frame update void Start() { d2 = FindObjectOfType(typeof(D2FogsPE)) as D2FogsPE; }
void Start() { playerAnimator = GetComponent <Animator>(); playerRB = GetComponent <Rigidbody2D>(); D3 = FindObjectOfType(typeof(D2FogsPE)) as D2FogsPE; }
// Start is called before the first frame update void Start() { ativarNeblina = FindObjectOfType(typeof(AtivarNeblina)) as AtivarNeblina; d2 = FindObjectOfType(typeof(D2FogsPE)) as D2FogsPE; }