35 lines
825 B
C#
35 lines
825 B
C#
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace FishNet.Object
|
|||
|
{
|
|||
|
public sealed partial class NetworkObject : MonoBehaviour
|
|||
|
{
|
|||
|
|
|||
|
#region Private.
|
|||
|
/// <summary>
|
|||
|
/// RpcLinks being used within this NetworkObject.
|
|||
|
/// </summary>
|
|||
|
private List<ushort> _rpcLinkIndexes;
|
|||
|
#endregion
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Sets rpcLinkIndexes to values.
|
|||
|
/// </summary>
|
|||
|
internal void SetRpcLinkIndexes(List<ushort> values)
|
|||
|
{
|
|||
|
_rpcLinkIndexes = values;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Removes used link indexes from ClientObjects.
|
|||
|
/// </summary>
|
|||
|
internal void RemoveClientRpcLinkIndexes()
|
|||
|
{
|
|||
|
NetworkManager.ClientManager.Objects.RemoveLinkIndexes(_rpcLinkIndexes);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|