mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
c63152f71e
commit
d0de7ed92f
@ -74,15 +74,6 @@ public static void Warning(string message, MemberReference mr)
|
||||
Log.Warning($"{message} (at {mr})");
|
||||
}
|
||||
|
||||
|
||||
static void CheckMonoBehaviour(TypeDefinition td)
|
||||
{
|
||||
if (td.IsDerivedFrom<UnityEngine.MonoBehaviour>())
|
||||
{
|
||||
MonoBehaviourProcessor.Process(td);
|
||||
}
|
||||
}
|
||||
|
||||
static bool WeaveNetworkBehavior(TypeDefinition td)
|
||||
{
|
||||
if (!td.IsClass)
|
||||
@ -90,7 +81,8 @@ static bool WeaveNetworkBehavior(TypeDefinition td)
|
||||
|
||||
if (!td.IsDerivedFrom<NetworkBehaviour>())
|
||||
{
|
||||
CheckMonoBehaviour(td);
|
||||
if (td.IsDerivedFrom<UnityEngine.MonoBehaviour>())
|
||||
MonoBehaviourProcessor.Process(td);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user