public void restart() { BallRespawn.respawnBall(); ps.PlaySim(); panel.alpha = 0; panel.blocksRaycasts = false; GameObject.Find("UIManager").GetComponent <CollectManager> ().tempCollected.Clear(); GameObject.Find("Placing").GetComponent <ElementPlacing> ().canPlace = true; }
//void OnCollisionEnter(Collision col){ IEnumerator OnCollisionEnter(Collision col) { if (col.gameObject.name == "Ball") { yield return(new WaitForSeconds(0.5f)); if (PlaySimulation.isSimActive) { ps.PlaySim(); } //br.respawnBall (); } }