Closed runningbird closed 1 year ago
Looks like in the file DefaultLagCompensationManager
public bool SimulateHitBoxes(long connectionId, long targetTime, Action action) public bool SimulateHitBoxesByHalfRtt(long connectionId, Action action)
but in the interface file ILagCompensationManager
bool SimulateHitBoxes(long connectionId, long rewindTime, System.Action action); bool SimulateHitBoxesByHalfRtt(long connectionId, System.Action action);
If I change the interface to not be a System.Action and just Action it uses your Action class that is based on a MonoBehavior.
I then get errors on the Action.Invoke(): on line 26 and 35 of the DefaultLagCompensationManager.
Then I get Error CS7036 There is no argument given that corresponds to the required parameter 'methodName' of 'MonoBehaviour.Invoke(string, float)' Assembly-CSharp G:\GameDesign\NPC-Jobs\Assets\UnityMultiplayerARPG\Core\Scripts\Networking\Implements\DefaultLagCompensationManager.cs 26 Active
Whoops looks like I did have an action class in the default namespace :(
After importing into a clean project and setting up for unity 2021.3.16f
I have done nothing else but import and got the following:
Assets\UnityMultiplayerARPG\Core\Scripts\Networking\Implements\DefaultLagCompensationManager.cs(8,65): error CS0535: 'DefaultLagCompensationManager' does not implement interface member 'ILagCompensationManager.SimulateHitBoxes(long, long, Action)'
and
Assets\UnityMultiplayerARPG\Core\Scripts\Networking\Implements\DefaultLagCompensationManager.cs(8,65): error CS0535: 'DefaultLagCompensationManager' does not implement interface member 'ILagCompensationManager.SimulateHitBoxesByHalfRtt(long, Action)'