using UnityEngine; using System.Collections; public static class ExtensionBool { public static int ToInt(this bool boolean) { if (boolean) { return 1; } else { return 0; } } }