public double ConvertTempreture(double val, WeightScale from, WeightScale to) { if (from == WeightScale.FAHRENHEIT) { if (to == WeightScale.FAHRENHEIT) { return(val); } else { return(val * 255.9277777777778); } } else { if (to == WeightScale.FAHRENHEIT) { return(val * -457.87); } else { return(val); } } }
void Awake() { I = this; }