void RefreshUI() { int currentPhysics = UserDC.GetPhysical(); int total = UserM.GetMaxPhysical(UserDC.GetLevel()); if (currentPhysics >= total) { SetType(0); } else { SetType(1); } int serverTime = GlobalTimer.GetNowTimeInt(); NGUIUtil.SetLableText <string>(MyHead.LblTime, NdUtil.ConvertServerTime(serverTime)); if (m_iType == 1) { int resumePhysicsTime = GlobalTimer.instance.GetPhysicsResumeCounter(); NGUIUtil.SetLableText <string>(MyHead.LblNextResumeTime, NdUtil.TimeFormat(resumePhysicsTime)); int resumePhysicsAllTime = GlobalTimer.instance.GetPhysicsResumeAllCounter(); NGUIUtil.SetLableText <string>(MyHead.LblResumeAllTime, NdUtil.TimeFormat(resumePhysicsAllTime)); } }