Class LoadAssetsPhase
This ILoadPhase will call LoadAssets(String, Action<List<Object>>) with the provided asset key.
Once the assets have been loaded, an optional callback with a list of the loaded assets will be broadcast.
This phase is only required if you are using an implementation of IAssetService that requires
loading. It can be a nice way to manage preloading assets so they can be synchronously accessed later.
Inheritance
LoadAssetsPhase
Assembly: cs.temp.dll.dll
Syntax
public class LoadAssetsPhase : LoadPhaseBase, ILoadPhase, ISequenceable, IProgressCompletable, IProgressable, ICompletable, IInjectable
Fields
_assetKey
Declaration
protected string _assetKey
Field Value
_onAssetsLoadedCallback
Declaration
protected Action<List<object>> _onAssetsLoadedCallback
Field Value
Methods
Cleanup()
Declaration
public override void Cleanup()
Overrides
HandleAssetsLoaded(IEnumerable<Object>)
Declaration
protected virtual void HandleAssetsLoaded(IEnumerable<object> assets)
Parameters
Type |
Name |
Description |
IEnumerable<Object> |
assets |
|
Initialize(String, Action<List<Object>>)
Declaration
public virtual ILoadPhase Initialize(string assetKey, Action<List<object>> onAssetsLoaded = null)
Parameters
Returns
RunCancelLogic()
Declaration
protected override void RunCancelLogic()
Overrides
RunCompleteLogic()
Declaration
protected override void RunCompleteLogic()
Overrides
RunRevertLogic()
Declaration
protected override void RunRevertLogic()
Overrides
RunStartLogic()
Declaration
protected override void RunStartLogic()
Overrides
Implements