Example #1
0
    IEnumerator Timeleft()
    {
        if (!Materialscontroller.isplyaed)
        {
            winparticle.Play();
            Materialscontroller.isplyaed = true;
        }

        camerashake.Shake();
        yield return(new WaitForSeconds(3));

        Scorepanel.SetActive(true);
    }
Example #2
0
 public void DestroyBrick()
 {
     bricks--;
     StartCoroutine(camerashake.Shake(.15f, .3f));
     CheckGameOver();
 }
Example #3
0
 private void OnTriggerEnter(Collider other)
 {
     GameManager.instance.LoseLife();
     StartCoroutine(camerashake.Shake(.15f, .4f));
 }