1234567891011121314151617181920212223 |
- 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();
- }
- }
- }
|