public void OnEnable() { int Hnum = (int)Score.Height; MeterText = Meter.GetComponent <Text>(); MeterText.text = Hnum.ToString(); BreakText = Break.GetComponent <Text>(); BreakText.text = Score.DestroyOb.ToString(); GoldText = Gold.GetComponent <Text>(); GoldText.text = Score.GetCoin.ToString(); CrystalText = Crystal.GetComponent <Text>(); CrystalText.text = "3"; TotalText = Total.GetComponent <Text>(); TotalText.text = (Hnum * 10 + Score.DestroyOb * 50 + Score.GetCoin * 100 + 3 * 5).ToString(); }