private void Update() { float change = trueProcess - virtualProcess; change = Mathf.Min(MAX_ADD_FRAME, change); change = Mathf.Max(MIN_ADD_FRAME, change); virtualProcess += change; RefreshView(); if (virtualProcess >= 1f) { WindowsUtil.RemoveWindow(this.gameObject); } }