private void OnTriggerEnter(Collider other) { //scored a goal if (other.tag == PongBall.TAG) { NARSPong_GameManager.GetInstance().AddMiss(); other.GetComponent <PongBall>().ResetPosition(); } }
protected virtual void OnCollisionEnter(Collision collision) { if (collision.collider.tag == PongBall.TAG) { NARSPong_GameManager.GetInstance().AddBlock(); if (GetSensorimotor() != null) { GetSensorimotor().Praise(); } } }