Updated Interest Management Script Template

This commit is contained in:
MrGadget1024 2023-01-29 06:44:15 -05:00
parent c4e9071700
commit 2554372913

View File

@ -32,9 +32,8 @@ public class #SCRIPTNAME# : InterestManagement
/// </summary>
/// <param name="identity">Object to be observed (or not) by clients</param>
/// <param name="newObservers">cached hashset to put the result into</param>
/// <param name="initialize">true if being rebuilt for the first time</param>
[ServerCallback]
public override void OnRebuildObservers(NetworkIdentity identity, HashSet<NetworkConnectionToClient> newObservers, bool initialize)
public override void OnRebuildObservers(NetworkIdentity identity, HashSet<NetworkConnectionToClient> newObservers)
{
// Default behaviour of making the identity object visible to all clients.
// Replace this code with your own logic as appropriate.