예제 #1
0
 public BallData GetPrevious()
 {
     return(order[BallMazeMaths.Mod(order.IndexOf(this) - 1, order.Count)]);
 }
예제 #2
0
 public BallData GetNext()
 {
     return(order[BallMazeMaths.Mod(order.IndexOf(this) + 1, order.Count)]);
 }