Beispiel #1
0
 static public void ClearInput(Transform t)
 {
     if (t != null)
     {
         InputNumber i = t.GetComponent <InputNumber>();
         if (i != null)
         {
             i.Clear();
         }
     }
 }
Beispiel #2
0
        public void TestClear()
        {
            // Get some integer input in place
            TestIntInput();
            AssertValue("12345", 12345.0M, false);
            // Clear it
            input.Clear();
            AssertValue("0", 0.0M, false);

            // Get some decimal in place
            TestDecimal();
            AssertValue("5.555", 5.555M, true);
            // Clear it
            input.Clear();
            AssertValue("0", 0.0M, false);
        }