Exemple #1
0
 public SnakePiece(Transform transform)
 {
     this.transform = transform;
     location = transform.Location.AsPoint();
 }
Exemple #2
0
 public Food(double aliveTime, Transform transform)
 {
     this.transform = transform;
     this.aliveTime = aliveTime;
 }
Exemple #3
0
 private void MoveTo(Point newLocation)
 {
     Tail?.MoveTo(location);
     location = newLocation;
     transform = transform.Move(() => location.AsVector2());
     hasMoved = true;
 }