IEnumerator Timeleft() { if (!Materialscontroller.isplyaed) { winparticle.Play(); Materialscontroller.isplyaed = true; } camerashake.Shake(); yield return(new WaitForSeconds(3)); Scorepanel.SetActive(true); }
public void DestroyBrick() { bricks--; StartCoroutine(camerashake.Shake(.15f, .3f)); CheckGameOver(); }
private void OnTriggerEnter(Collider other) { GameManager.instance.LoseLife(); StartCoroutine(camerashake.Shake(.15f, .4f)); }