public void InitializeGameObject(string key, LogicEntity e, Transform owner) { if (prefabLookUp.ContainsKey(key)) { FXBehaviour fxBehaviour = prefabLookUp [key].GetComponent <FXBehaviour> (); if (fxBehaviour != null) { fxBehaviour.Initialize(e, owner); } } }
static int get_CacheImage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXBehaviour obj = (FXBehaviour)o; UnityEngine.UI.Image ret = obj.CacheImage; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CacheImage on a nil value")); } }
static int get_CacheSpriteRenderer(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXBehaviour obj = (FXBehaviour)o; UnityEngine.SpriteRenderer ret = obj.CacheSpriteRenderer; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CacheSpriteRenderer on a nil value")); } }