source: binary-improvements/7dtd-server-fixes/src/AllocsUtils.cs@ 347

Last change on this file since 347 was 325, checked in by alloc, 6 years ago

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File size: 265 bytes
Line 
1using UnityEngine;
2
3namespace AllocsFixes {
4 public static class AllocsUtils {
5 public static string ColorToHex (Color _color) {
6 return string.Format ("{0:X02}{1:X02}{2:X02}", (int) (_color.r * 255), (int) (_color.g * 255),
7 (int) (_color.b * 255));
8 }
9 }
10}
Note: See TracBrowser for help on using the repository browser.