mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Fixed Observer Template
This commit is contained in:
parent
3e21aca8fc
commit
201411d7f4
@ -9,8 +9,6 @@ using System.Collections.Generic;
|
||||
|
||||
public class #SCRIPTNAME# : NetworkVisibility
|
||||
{
|
||||
#region Observers
|
||||
|
||||
/// <summary>
|
||||
/// Callback used by the visibility system to determine if an observer (player) can see this object.
|
||||
/// <para>If this function returns true, the network connection will be added as an observer.</para>
|
||||
@ -19,7 +17,7 @@ public class #SCRIPTNAME# : NetworkVisibility
|
||||
/// <returns>True if the player can see this object.</returns>
|
||||
public override bool OnCheckObserver(NetworkConnection conn)
|
||||
{
|
||||
return base.OnCheckObserver(conn);
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -29,6 +27,4 @@ public class #SCRIPTNAME# : NetworkVisibility
|
||||
/// <param name="observers">The new set of observers for this object.</param>
|
||||
/// <param name="initialize">True if the set of observers is being built for the first time.</param>
|
||||
public override void OnRebuildObservers(HashSet<NetworkConnection> observers, bool initialize) { }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user