mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Remove passthrough method
This commit is contained in:
parent
3fec9ec880
commit
c868561822
@ -94,11 +94,6 @@ internal static void ConfirmGeneratedCodeClass()
|
||||
}
|
||||
}
|
||||
|
||||
public static bool IsNetworkBehaviour(TypeDefinition td)
|
||||
{
|
||||
return td.IsDerivedFrom<NetworkBehaviour>();
|
||||
}
|
||||
|
||||
static void CheckMonoBehaviour(TypeDefinition td)
|
||||
{
|
||||
if (td.IsDerivedFrom<UnityEngine.MonoBehaviour>())
|
||||
@ -112,7 +107,7 @@ static bool WeaveNetworkBehavior(TypeDefinition td)
|
||||
if (!td.IsClass)
|
||||
return false;
|
||||
|
||||
if (!IsNetworkBehaviour(td))
|
||||
if (!td.IsDerivedFrom<NetworkBehaviour>())
|
||||
{
|
||||
CheckMonoBehaviour(td);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user