mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00: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)
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user