Skip to content

Commit

Permalink
Update LuaCodeGen.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pangweiwei committed Oct 21, 2015
1 parent 68c8f47 commit 5e6683e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Slua/Editor/LuaCodeGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,8 @@ private void WriteFunctionAttr(StreamWriter file)
ConstructorInfo[] GetValidConstructor(Type t)
{
List<ConstructorInfo> ret = new List<ConstructorInfo>();
if (t.GetConstructor(Type.EmptyTypes) == null && t.IsAbstract && t.IsSealed)
return ret.ToArray();
if (t.IsAbstract)
return ret.ToArray();
if (t.BaseType != null && t.BaseType.Name == "MonoBehaviour")
Expand Down

0 comments on commit 5e6683e

Please sign in to comment.