Remove passthrough method

This commit is contained in:
Paul Pacheco 2020-09-22 12:49:38 -05:00
parent 3fec9ec880
commit c868561822

View File

@ -94,11 +94,6 @@ internal static void ConfirmGeneratedCodeClass()
} }
} }
public static bool IsNetworkBehaviour(TypeDefinition td)
{
return td.IsDerivedFrom<NetworkBehaviour>();
}
static void CheckMonoBehaviour(TypeDefinition td) static void CheckMonoBehaviour(TypeDefinition td)
{ {
if (td.IsDerivedFrom<UnityEngine.MonoBehaviour>()) if (td.IsDerivedFrom<UnityEngine.MonoBehaviour>())
@ -112,7 +107,7 @@ static bool WeaveNetworkBehavior(TypeDefinition td)
if (!td.IsClass) if (!td.IsClass)
return false; return false;
if (!IsNetworkBehaviour(td)) if (!td.IsDerivedFrom<NetworkBehaviour>())
{ {
CheckMonoBehaviour(td); CheckMonoBehaviour(td);
return false; return false;