This commit is contained in:
vis2k 2021-07-14 11:04:12 +08:00
parent 99db407990
commit 7206c56a53

View File

@ -78,14 +78,12 @@ public virtual void SetHostVisibility(NetworkIdentity identity, bool visible)
rend.enabled = visible;
}
/// <summary>
/// This is called on the server when a new networked object is spawned
/// </summary>
/// <summary>Called on the server when a new networked object is spawned.</summary>
// (useful for 'only rebuild if changed' interest management algorithms)
public virtual void OnSpawned(NetworkIdentity identity) {}
/// <summary>
/// This is called on the server when a networked object is destroyed
/// </summary>
/// <summary>Called on the server when a networked object is destroyed.</summary>
// (useful for 'only rebuild if changed' interest management algorithms)
public virtual void OnDestroyed(NetworkIdentity identity) {}
}
}