Add StickGame Assets

This commit is contained in:
Dzejkobik007
2024-03-24 22:21:16 +01:00
parent 5a5812c0c7
commit 6c8b523d1f
6643 changed files with 596260 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using FishNet.Documenting;
using FishNet.Managing;
using FishNet.Object;
namespace FishNet.Utility.Extension
{
[APIExclude]
public static class NetworksFN
{
/// <summary>
/// Returns if logic could have potentially called already on server side, and is calling a second time for clientHost side.
/// </summary>
public static bool DoubleLogic(this NetworkObject nob, bool asServer) => (!asServer && nob.NetworkManager.IsServer);
/// <summary>
/// Returns if logic could have potentially called already on server side, and is calling a second time for clientHost side.
/// </summary>
public static bool DoubleLogic(this NetworkManager manager, bool asServer) => (!asServer && manager.IsServer);
/// <summary>
/// Returns if logic could have potentially called already on server side, and is calling a second time for clientHost side.
/// </summary>
public static bool DoubleLogic(this NetworkBehaviour nb, bool asServer) => (!asServer && nb.NetworkManager.IsServer);
}
}