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

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

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

File size: 265 bytes
RevLine 
[325]1using UnityEngine;
[253]2
[325]3namespace AllocsFixes {
[253]4 public static class AllocsUtils {
[325]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));
[253]8 }
9 }
[325]10}
Note: See TracBrowser for help on using the repository browser.