45 lines
1015 B
C#
45 lines
1015 B
C#
![]() |
// ***********************************************************************
|
|||
|
// Assembly : Unity
|
|||
|
// Author : Kimch
|
|||
|
// Created : 2017-11-11
|
|||
|
//
|
|||
|
// Last Modified By : Kimch
|
|||
|
// Last Modified On :
|
|||
|
// ***********************************************************************
|
|||
|
// <copyright file= "LoadWindow.Model" company=""></copyright>
|
|||
|
// <summary></summary>
|
|||
|
// ***********************************************************************
|
|||
|
|
|||
|
namespace G.UI
|
|||
|
{
|
|||
|
partial class LoadWindow
|
|||
|
{
|
|||
|
#region Field
|
|||
|
|
|||
|
#pragma warning disable CS0414 // 字段“LoadWindow._progress”已被赋值,但从未使用过它的值
|
|||
|
private int _progress;
|
|||
|
#pragma warning restore CS0414 // 字段“LoadWindow._progress”已被赋值,但从未使用过它的值
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Method
|
|||
|
|
|||
|
public void RefreshModel()
|
|||
|
{
|
|||
|
_progress = 0;
|
|||
|
}
|
|||
|
|
|||
|
private float GetProgress()
|
|||
|
{
|
|||
|
var ar = data as F.IAsyncResult;
|
|||
|
if (ar != null)
|
|||
|
{
|
|||
|
return ar.progress;
|
|||
|
}
|
|||
|
return 0f;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|