C# Class SimpleFramework.Manager.GameManager

Inheritance: LuaInterface.LuaBehaviour
ファイルを表示 Open project: QiuBuZai/UnityLuaFramework Class Usage Examples

Public Properties

Property Type Description
uluaMgr LuaScriptMgr

Public Methods

Method Description
Awake ( ) : void

初始化游戏管理器

BeginDownload ( string url, string file ) : void

线程下载

CheckExtractResource ( ) : void

释放资源

FixedUpdate ( ) : void
Init ( ) : void

初始化

LateUpdate ( ) : void
OnDestroy ( ) : void

析构函数

OnResourceInited ( ) : void

资源初始化结束

OnThreadCompleted ( NotiData data ) : void

线程完成

OnUpdateFailed ( string file ) : void
Update ( ) : void

Private Methods

Method Description
IsDownOK ( string file ) : bool

是否下载完成

OnExtractResource ( ) : IEnumerator
OnUpdateResource ( ) : IEnumerator

启动更新下载,这里只是个思路演示,此处可启动线程下载更新

Method Details

Awake() public method

初始化游戏管理器
public Awake ( ) : void
return void

BeginDownload() public method

线程下载
public BeginDownload ( string url, string file ) : void
url string
file string
return void

CheckExtractResource() public method

释放资源
public CheckExtractResource ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

Init() public method

初始化
public Init ( ) : void
return void

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnDestroy() public method

析构函数
public OnDestroy ( ) : void
return void

OnResourceInited() public method

资源初始化结束
public OnResourceInited ( ) : void
return void

OnThreadCompleted() public method

线程完成
public OnThreadCompleted ( NotiData data ) : void
data NotiData
return void

OnUpdateFailed() public method

public OnUpdateFailed ( string file ) : void
file string
return void

Update() public method

public Update ( ) : void
return void

Property Details

uluaMgr public_oe property

public LuaScriptMgr uluaMgr
return LuaScriptMgr