Exemplo n.º 1
0
 private void Update()
 {
     if (next == true)
     {
         //if (Void == "Center")
         //tile.Center();
         if (tile.tiling == true)
         {
             if (spawn == true)
             {
                 if (Void == "Up")
                 {
                     tile.Up();
                 }
                 if (Void == "Down")
                 {
                     tile.Down();
                 }
                 if (Void == "Left")
                 {
                     tile.Left();
                 }
                 if (Void == "Right")
                 {
                     tile.Right();
                 }
                 if (Void == "UpL")
                 {
                     tile.UpL();
                 }
                 if (Void == "UpR")
                 {
                     tile.UpR();
                 }
                 if (Void == "DownL")
                 {
                     tile.DownL();
                 }
                 if (Void == "DownR")
                 {
                     tile.DownR();
                 }
                 spawn = false;
                 next  = false;
             }
         }
     }
 }