コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
    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"));
        }
    }
コード例 #3
0
    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"));
        }
    }