using UnityEngine; using System; using System.Collections; public static class ExtensionInt { public static bool ToBool(this int integer) { if (integer == 0) { return false; } else if (integer == 1) { return true; } else { throw new Exception(); } } }