示例#1
0
        public void SetRoutineLength(ERound inRound, ERoutineLength length)
        {
            RoundData rd = GetRoundData(inRound);

            if (rd != null)
            {
                rd.routineLength = RoutineLengthToFloat(length);
            }
        }
示例#2
0
        public float RoutineLengthToFloat(ERoutineLength length)
        {
            switch (length)
            {
            case ERoutineLength._2_Minutes:
                return(2f);

            case ERoutineLength._2_Minutes_30_Seconds:
                return(2.5f);

            case ERoutineLength._3_Minutes:
                return(3f);

            case ERoutineLength._4_Minutes:
                return(4f);

            case ERoutineLength._5_Minutes:
                return(5f);
            }

            return(0f);
        }