public void BlockDestroy() { breakbleBlocks--; if (breakbleBlocks <= 0) { session.AddLife(); sceneLoader.LoadNextScene(); } }
public void RemoveBlockFromCount() { breakableBlocks--; if (breakableBlocks <= 0) { gameSession.AddLife(); sceneLoader.LoadNextScene(); } }
//IEnumerator VanishLaser(Animator anim) { // anim.SetTrigger("Vanish"); // yield return new WaitForSeconds(1f); //} private void ActivateLife() { //Debug.Log("PickupManager: Activating addLife"); gameSession.AddLife(); }
private void OnTriggerEnter2D() { AudioSource.PlayClipAtPoint(lifeupSfx, Camera.main.transform.position, lifeupVolume); gameSession.AddLife(); Destroy(gameObject); }
public void AddBallCount() { ballsInPlay++; gameSession.AddLife(); }