Changeset 325 for binary-improvements/7dtd-server-fixes/src/AllocsUtils.cs
- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsUtils.cs
r253 r325 1 using System;1 using UnityEngine; 2 2 3 namespace AllocsFixes 4 { 3 namespace AllocsFixes { 5 4 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));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)); 9 8 } 10 11 9 } 12 10 } 13
Note:
See TracChangeset
for help on using the changeset viewer.