Exemplo n.º 1
0
        public static string GetDisplayName(this PrefabSettings.RotationRange rotationRange)
        {
            switch (rotationRange)
            {
            case PrefabSettings.RotationRange.Base_360: return("0..360");

            case PrefabSettings.RotationRange.Base_180: return("-180..180");

            default: throw new Exception("Unsupported enum " + rotationRange);
            }
            ;
        }
Exemplo n.º 2
0
        public static float GetMinimum(this PrefabSettings.RotationRange rotationRange)
        {
            switch (rotationRange)
            {
            case PrefabSettings.RotationRange.Base_360: return(0f);

            case PrefabSettings.RotationRange.Base_180: return(-180f);

            default: throw new Exception("Unsupported enum " + rotationRange);
            }
            ;
        }
Exemplo n.º 3
0
        public static PrefabSettings.RotationRange GetNext(this PrefabSettings.RotationRange rotationRange)
        {
            switch (rotationRange)
            {
            case PrefabSettings.RotationRange.Base_360: return(PrefabSettings.RotationRange.Base_180);

            case PrefabSettings.RotationRange.Base_180:  return(PrefabSettings.RotationRange.Base_360);

            default: throw new Exception("Unsupported enum " + rotationRange);
            }
            ;
        }