コード例 #1
0
 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;
 }
コード例 #2
0
    //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 ();
        }
    }