コード例 #1
0
ファイル: FootManWrap.cs プロジェクト: Visow/Unity_ToLua
    static int get_m_vfCharcter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan     obj = (FootMan)o;
            VFCharacter ret = obj.m_vfCharcter;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_vfCharcter on a nil value"));
        }
    }
コード例 #2
0
ファイル: FootManWrap.cs プロジェクト: Visow/Unity_ToLua
    static int set_m_vfCharcter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan     obj  = (FootMan)o;
            VFCharacter arg0 = (VFCharacter)ToLua.CheckObject <VFCharacter>(L, 2);
            obj.m_vfCharcter = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_vfCharcter on a nil value"));
        }
    }
コード例 #3
0
ファイル: FootMan.cs プロジェクト: Visow/Unity_ToLua
 void Awake()
 {
     m_vfCharcter = GetComponent <VFCharacter>();
 }