public void FlashTile(int tile, float colorPct = 0f, string text = null, int duration = 50)
        {
            DebugTile debugTile = new DebugTile();

            debugTile.tile          = tile;
            debugTile.displayString = text;
            debugTile.colorPct      = colorPct;
            debugTile.ticksLeft     = duration;
            this.debugTiles.Add(debugTile);
        }
        public void FlashTile(int tile, Material mat, string text = null, int duration = 50)
        {
            DebugTile debugTile = new DebugTile();

            debugTile.tile          = tile;
            debugTile.displayString = text;
            debugTile.customMat     = mat;
            debugTile.ticksLeft     = duration;
            this.debugTiles.Add(debugTile);
        }
 public void WorldDebugDrawerTick()
 {
     for (int num = this.debugTiles.Count - 1; num >= 0; num--)
     {
         DebugTile debugTile = this.debugTiles[num];
         debugTile.ticksLeft--;
         if (debugTile.ticksLeft <= 0)
         {
             this.debugTiles.RemoveAt(num);
         }
     }
     for (int num2 = this.debugLines.Count - 1; num2 >= 0; num2--)
     {
         DebugWorldLine debugWorldLine = this.debugLines[num2];
         debugWorldLine.ticksLeft--;
         if (debugWorldLine.ticksLeft <= 0)
         {
             this.debugLines.RemoveAt(num2);
         }
     }
 }
예제 #4
0
 public void WorldDebugDrawerTick()
 {
     for (int i = this.debugTiles.Count - 1; i >= 0; i--)
     {
         DebugTile debugTile = this.debugTiles[i];
         debugTile.ticksLeft--;
         if (debugTile.ticksLeft <= 0)
         {
             this.debugTiles.RemoveAt(i);
         }
     }
     for (int j = this.debugLines.Count - 1; j >= 0; j--)
     {
         DebugWorldLine debugWorldLine = this.debugLines[j];
         debugWorldLine.ticksLeft--;
         if (debugWorldLine.ticksLeft <= 0)
         {
             this.debugLines.RemoveAt(j);
         }
     }
 }