Beispiel #1
0
 void PlayerEnteredTile(TileMovingObjectScript TileObject, StinkyFile.SRotation Direction)
 {
     if (TileObject.SpecialObjectIgnore)
     {
         return;
     }
     if (!TryMove(TileObject, Direction))                                                // try moving forward
     {
         if (!TryMove(TileObject, TileMovingObjectScript.GetBehindDirection(Direction))) // try flipping around
         {
             Player.KillAllPlayers();
         }
     }
 }
Beispiel #2
0
 private static SRotation GetBehind(SRotation rotation) => TileMovingObjectScript.GetBehindDirection(rotation);