Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     //scored a goal
     if (other.tag == PongBall.TAG)
     {
         NARSPong_GameManager.GetInstance().AddMiss();
         other.GetComponent <PongBall>().ResetPosition();
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnCollisionEnter(Collision collision)
 {
     if (collision.collider.tag == PongBall.TAG)
     {
         NARSPong_GameManager.GetInstance().AddBlock();
         if (GetSensorimotor() != null)
         {
             GetSensorimotor().Praise();
         }
     }
 }
Ejemplo n.º 3
0
 private void Start()
 {
     _instance = this;
 }