source:
binary-improvements/7dtd-server-fixes/src/AllocsUtils.cs@
260
Last change on this file since 260 was 253, checked in by , 9 years ago | |
---|---|
File size: 269 bytes |
Line | |
---|---|
1 | using System; |
2 | |
3 | namespace AllocsFixes |
4 | { |
5 | public static class AllocsUtils { |
6 | |
7 | public static string ColorToHex (UnityEngine.Color _color) { |
8 | return string.Format ("{0:X02}{1:X02}{2:X02}", (int)(_color.r * 255), (int)(_color.g * 255), (int)(_color.b * 255)); |
9 | } |
10 | |
11 | } |
12 | } |
13 |
Note:
See TracBrowser
for help on using the repository browser.