mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Updated Netowork Observer template
This commit is contained in:
parent
4994193668
commit
0e1aa1b305
@ -30,12 +30,5 @@ public class #SCRIPTNAME# : NetworkVisibility
|
||||
/// <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) { }
|
||||
|
||||
/// <summary>
|
||||
/// Callback used by the visibility system for objects on a host.
|
||||
/// <para>Objects on a host (with a local client) cannot be disabled or destroyed when they are not visible to the local client. So this function is called to allow custom code to hide these objects. A typical implementation will disable renderer components on the object. This is only called on local clients on a host.</para>
|
||||
/// </summary>
|
||||
/// <param name="visible">New visibility state.</param>
|
||||
public override void OnSetHostVisibility(bool visible) { }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user