Exemplo n.º 1
0
    IEnumerator Timeleft()
    {
        if (!Materialscontroller.isplyaed)
        {
            winparticle.Play();
            Materialscontroller.isplyaed = true;
        }

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

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