上传YomovSDK

This commit is contained in:
Sora丶kong
2026-03-03 03:15:46 +08:00
parent 9096da7e6c
commit eb97f31065
6477 changed files with 1932208 additions and 3 deletions

View File

@@ -0,0 +1,49 @@

namespace FishNet.Object.Helping
{
public static class CodegenHelper
{
/// <summary>
/// Returns if a NetworkObject is deinitializing.
/// </summary>
/// <param name="nb"></param>
/// <returns></returns>
public static bool NetworkObject_Deinitializing(NetworkBehaviour nb)
{
if (nb == null)
return true;
return nb.IsDeinitializing;
}
/// <summary>
/// Returns if running as server.
/// </summary>
/// <param name="nb"></param>
/// <returns></returns>
public static bool IsServer(NetworkBehaviour nb)
{
if (nb == null)
return false;
return nb.IsServer;
}
/// <summary>
/// Returns if running as client.
/// </summary>
/// <param name="nb"></param>
/// <returns></returns>
public static bool IsClient(NetworkBehaviour nb)
{
if (nb == null)
return false;
return nb.IsClient;
}
}
}