OnStopAuthority() public méthode

This is invoked on behaviours when authority is removed.

When NetworkIdentity.RemoveClientAuthority is called on the server, this will be called on the client that owns the object.

public OnStopAuthority ( ) : void
Résultat void
Exemple #1
0
 internal void OnStopAuthority()
 {
     for (int i = 0; i < m_NetworkBehaviours.Length; i++)
     {
         NetworkBehaviour comp = m_NetworkBehaviours[i];
         try
         {
             comp.OnStopAuthority();
         }
         catch (Exception e)
         {
             Debug.LogError("Exception in OnStopAuthority:" + e.Message + " " + e.StackTrace);
         }
     }
 }