private void Update() { if (life == 0) { Destroy(gameObject); soundScript.playPop(); Instantiate(bigSplash, transform.position, Quaternion.identity); if (isSmall) { scoreScript.IncreaseScore(2, false, false, true); } else if (isMedium) { scoreScript.IncreaseScore(3, false, true, false); } else if (isLarge) { scoreScript.IncreaseScore(4, true, false, false); } } }