C# Class Hugula.PLua

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: tenvick/hugula Class Usage Examples

Public Properties

Property Type Description
enterLua string
lua LuaInterface.Lua
onAppFocusFn LuaFunction
onAppPauseFn LuaFunction
onAppQuitFn LuaFunction
onDestroyFn LuaFunction

Private Properties

Property Type Description
Awake void
DecryptLuaBundle IEnumerator
DelayDo IEnumerator
DoMain void
LoadBundle void
LoadLuaBytes byte[]
LoadScript void
Loader byte[]
OnApplicationFocus void
OnApplicationPause void
OnApplicationQuit void
OnDestroy void
ReOpen IEnumerator
RegisterFunc void
SetLuaPath void
Start void
Update void

Public Methods

Method Description
Delay ( LuaFunction luafun, float time ) : Coroutine
LoadBundle ( LuaFunction onLoadedFn ) : void

load assetbundle

ReStart ( float sconds ) : void

ReStart.

RemoveAllEvents ( ) : void

Removes all events.

SetRequire ( string key, TextAsset textAsset ) : void

ÉèÖÃrequire

StopAllDelay ( ) : void
StopDelay ( Coroutine coroutine ) : void

Private Methods

Method Description
Awake ( ) : void
DecryptLuaBundle ( string luaPath, bool isStreaming, LuaFunction onLoadedFn ) : IEnumerator

lua bundle

DelayDo ( LuaFunction luafun, float time ) : IEnumerator
DoMain ( ) : void

lua begin

LoadBundle ( ) : void

load assetbundle

LoadLuaBytes ( string name ) : byte[]

´ÓabÖÐload bytes

LoadScript ( ) : void
Loader ( string name ) : byte[]

loader

OnApplicationFocus ( bool focusStatus ) : void
OnApplicationPause ( bool pauseStatus ) : void
OnApplicationQuit ( ) : void
OnDestroy ( ) : void
ReOpen ( float seconds ) : IEnumerator

RegisterFunc ( ) : void
SetLuaPath ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

Delay() public static method

public static Delay ( LuaFunction luafun, float time ) : Coroutine
luafun LuaFunction
time float
return UnityEngine.Coroutine

LoadBundle() public method

load assetbundle
public LoadBundle ( LuaFunction onLoadedFn ) : void
onLoadedFn LuaFunction
return void

ReStart() public method

ReStart.
public ReStart ( float sconds ) : void
sconds float Sconds.
return void

RemoveAllEvents() public method

Removes all events.
public RemoveAllEvents ( ) : void
return void

SetRequire() public method

ÉèÖÃrequire
public SetRequire ( string key, TextAsset textAsset ) : void
key string
textAsset UnityEngine.TextAsset
return void

StopAllDelay() public static method

public static StopAllDelay ( ) : void
return void

StopDelay() public static method

public static StopDelay ( Coroutine coroutine ) : void
coroutine UnityEngine.Coroutine
return void

Property Details

enterLua public_oe static_oe property

public static string enterLua
return string

lua public_oe property

public Lua,LuaInterface lua
return LuaInterface.Lua

onAppFocusFn public_oe property

public LuaFunction onAppFocusFn
return LuaFunction

onAppPauseFn public_oe property

public LuaFunction onAppPauseFn
return LuaFunction

onAppQuitFn public_oe property

public LuaFunction onAppQuitFn
return LuaFunction

onDestroyFn public_oe property

public LuaFunction onDestroyFn
return LuaFunction