Advertisement
baldio99codderboi

Untitled

May 24th, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. for (int i = 0; i < this.ec.levelSize.x; i++)
  2. {
  3. for (int j = 0; j < this.ec.levelSize.z; j++)
  4. {
  5. if (this.ec.tiles[i, j] != null)
  6. {
  7. float num = Mathf.Max((float)i / (float)this.ec.levelSize.x, (float)j / (float)this.ec.levelSize.z);
  8. this.ec.tiles[i, j].ChangeColor(new Color(num, num, num));
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement