Example #1
0
 void OnCollisionEnter(Collision co)
 {
     collisionCount++;
     if (collisionCount > 1 && !CatPreferences.IsStarving())
     {
         catControl.MoveTo(transform.position);
         CatPreferences.addBallPlayingNum();
         collisionCount = 0;
     }
     yPosition = co.transform.position.y;
 }