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

Last change on this file since 254 was 253, checked in by alloc, 9 years ago

Fixes 6_8_10

File size: 269 bytes
RevLine 
[253]1using System;
2
3namespace 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.