Beispiel #1
0
    static int get_m_OutlineShader(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.GameMgr        obj = (WCG.GameMgr)o;
            UnityEngine.Shader ret = obj.m_OutlineShader;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_OutlineShader on a nil value"));
        }
    }
Beispiel #2
0
    static int get_m_eRunMode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.GameMgr obj = (WCG.GameMgr)o;
            WCG.RunMode ret = obj.m_eRunMode;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_eRunMode on a nil value"));
        }
    }
Beispiel #3
0
    static int set_m_SceneShader(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.GameMgr        obj  = (WCG.GameMgr)o;
            UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckObject(L, 2, typeof(UnityEngine.Shader));
            obj.m_SceneShader = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_SceneShader on a nil value"));
        }
    }
Beispiel #4
0
    static int set_m_ColorOffMat(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.GameMgr          obj  = (WCG.GameMgr)o;
            UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 2);
            obj.m_ColorOffMat = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_ColorOffMat on a nil value"));
        }
    }
Beispiel #5
0
    static int set_afterImageWithScaleEffect(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.GameMgr obj = (WCG.GameMgr)o;
            WCG.AfterImageWithScaleEffect arg0 = (WCG.AfterImageWithScaleEffect)ToLua.CheckObject <WCG.AfterImageWithScaleEffect>(L, 2);
            obj.afterImageWithScaleEffect = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index afterImageWithScaleEffect on a nil value"));
        }
    }
Beispiel #6
0
    static int set_m_FrozenTexture(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.GameMgr         obj  = (WCG.GameMgr)o;
            UnityEngine.Texture arg0 = (UnityEngine.Texture)ToLua.CheckObject <UnityEngine.Texture>(L, 2);
            obj.m_FrozenTexture = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_FrozenTexture on a nil value"));
        }
    }
 void Awake()
 {
     Instance = this;
     InitObjRoot();
     DontDestroyOnLoad(gameObject);
 }