OnStopAuthority() public method

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
return void
Ejemplo n.º 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);
         }
     }
 }