// Will be called when balls are stopped after a shot. When playing multiplayer this will be activated only by the active player. Passive player will call ShotShort method // GLOBAL protected virtual void ShotLong() { if (galaxyManagerActive) { shotsTaken++; GalaxyManager.Instance.StatsAndAchievements.SetStatInt("shotsTaken", shotsTaken); } CountBallsOnTable(); shotScore = ScoreCounter(); foul = FoulDecider(); ballOn = BallOnDecider(); Respot(); ShotDecider(); StartCoroutine(DisplayShotStats()); PlayingNext(); GameEnd(); ShotCleanUp(); }
public Ball(int value, BallColorEnum color) { this._value = value; this._color = color; }