Ejemplo n.º 1
0
 public void GameOverDetect(BallFallDetectInputData stateData)
 {
     if (stateData.FallDetectLayerName == "PlayerBall")
     {
         gameOverAsObserable.OnNext(Unit.Default);
     }
 }
Ejemplo n.º 2
0
 public void BallCount(BallFallDetectInputData stateData)
 {
     if (stateData.HallType == HallType.Other)
     {
         return;
     }
     if (stateData.FallDetectLayerName == "Ball")
     {
         fallCounterEntity.Amount++;
     }
     Output();
 }