Exemplo n.º 1
0
 public void UnitOfWeightChange(int i, bool syncValue = false)
 {
     currUnitOfWeightIndex = i;
     if (currUnitOfWeightIndex == 0)
     {
         objKg.SetActive(true);
         objPound.SetActive(false);
         if (syncValue)
         {
             KGControl.InitialValue((int)(GetPound() * 0.45359237f));
         }
     }
     else
     {
         objKg.SetActive(false);
         objPound.SetActive(true);
         if (syncValue)
         {
             PoundControl.InitialValue((int)(GetKG() * 2.20462262f));
         }
     }
 }
Exemplo n.º 2
0
 public void SetInitialTime(int hour, int minute)
 {
     HourControl.InitialValue(hour);
     MinuteControl.InitialValue(minute);
 }
Exemplo n.º 3
0
 public void SetInitialDate(int year, int month, int day)
 {
     YearControl.InitialValue(year);
     MonthControl.InitialValue(month);
     DayControl.InitialValue(day);
 }