This commit is contained in:
vis2k 2022-01-18 16:50:00 +08:00
parent 8647efc297
commit a797c9733a

View File

@ -21,12 +21,10 @@ class Invoker
public RemoteCallDelegate function;
public bool cmdRequiresAuthority;
public bool AreEqual(Type componentType, RemoteCallType remoteCallType, RemoteCallDelegate invokeFunction)
{
return (this.componentType == componentType &&
this.callType == remoteCallType &&
this.function == invokeFunction);
}
public bool AreEqual(Type componentType, RemoteCallType remoteCallType, RemoteCallDelegate invokeFunction) =>
this.componentType == componentType &&
this.callType == remoteCallType &&
this.function == invokeFunction;
}
/// <summary>Used to help manage remote calls for NetworkBehaviours</summary>