protected void MouseDownRequest(int index, int frame)
{
if (!OwningNetWorker.IsServer && !clientSidePrediction)
return;
if (mouseIndices.Contains(index))
return;
mouseIndices.Add(index);
if (mouseDownRequest != null)
mouseDownRequest(index, frame);
#if UNITY_EDITOR
else
Debug.LogError("The input key " + index.ToString() + " was requested from the client but no mouse input request mouseDownRequest has not been assigned");
#endif
if (mouseUpBuffer.Contains(index))
{
MouseUpRequest(index, frame);
mouseUpBuffer.Remove(index);
}
}