Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | static public LaunchStage currentStage { get { return m_CurrentStage; } }
|
| | |
|
| | | static float m_Progress = 0f;
|
| | | static public float progress {
|
| | | static public float progress
|
| | | {
|
| | | get { return m_Progress; }
|
| | | set {
|
| | | set
|
| | | {
|
| | | if (m_Progress != value)
|
| | | {
|
| | | m_Progress = value;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private byte m_Step = 0;
|
| | |
|
| | | void Start()
|
| | | {
|
| | | m_Step = 0;
|
| | | SoundPlayer.Instance.PlayLoginMusic();
|
| | | Config.Instance.PreLoadConfigs();
|
| | | ServerListCenter.Instance.RequestJumpUrl();
|
| | |
|
| | | WindowCenter.Instance.OpenFromLocal<LaunchWin>();
|
| | | DebugUtility.Instance.CreateDebugRoot();
|
| | |
|
| | | StartCoroutine(Co_Lanuch());
|
| | | }
|
| | |
|
| | | void Update()
|
| | | {
|
| | | if (m_Step == 1)
|
| | | {
|
| | | ServerListCenter.Instance.RequestJumpUrl();
|
| | | m_Step = 2;
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator Co_Lanuch()
|
| | |
| | | yield return null;
|
| | | }
|
| | | #endif
|
| | |
|
| | | m_Step = 1;
|
| | | var cpu = 2;
|
| | | var memory = 2048;
|
| | | DeviceUtility.GetCpuAndMemory(out cpu, out memory);
|
| | |
| | | _ExpSlider.stage = NowLv;
|
| | | _ExpSlider.value = (float)ExpValueFloat;
|
| | | }
|
| | | _ExpRate.text = (float)Math.Round((double)nowVlaue / maxValue, 2, MidpointRounding.AwayFromZero) * 100 + "%";
|
| | | if ((float)Math.Round((double)nowVlaue / maxValue, 2, MidpointRounding.AwayFromZero) >= 1f)
|
| | | {
|
| | | _ExpRate.text = "99.9%";
|
| | | }
|
| | | else
|
| | | {
|
| | | _ExpRate.text = (float)Math.Round((double)nowVlaue / maxValue, 2, MidpointRounding.AwayFromZero) * 100 + "%";
|
| | | } |
| | | }
|
| | | }
|
| | |
|