Fixed Observer Template

This commit is contained in:
Chris Langsenkamp 2020-05-05 00:37:21 -04:00
parent 3e21aca8fc
commit 201411d7f4

View File

@ -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
}