void OnDisable()
 {
     if (!isLocalPlayer)
     {
         return;
     }
     // Won't be followed if disabled.
     cameraFollow.RemovePlayer(gameObject);
 }
Пример #2
0
 void OnDisable()
 {
     // Won't be followed if disabled.
     cameraFollow.RemovePlayer(this.gameObject);
 }