// OLD CODE // private void OnTriggerEnter(Collider other) // { // if (other.GetComponent<Ball>()) // { // ballOutOfPlay = true; // StandingPinsCounter.color = Color.red; // } // } public void newPinsSet() { if (pinCounter.countStandingPins() == 0) { Instantiate(PinSet).transform.Translate(new Vector3(0, 50, 0), Space.World); } }