예제 #1
0
 public static void CheckIsBallDeleted(ref Ball currentBall)
 {
     if (currentBall._isDeleted)
     {
         currentBall._color = BallColor.Black;
     }
 }
예제 #2
0
        public static Ball InitBall()
        {
            Ball newBall = new Ball();
            newBall._color = SetRandomBallColor();
            newBall._isDeleted = false;

            return newBall;
        }
예제 #3
0
 public static BallColor GetBallColor(Ball currentBall)
 {
     return currentBall._color;
 }