Ejemplo n.º 1
0
 public static void ShowRemotePlayers()
 {
     CameraCullingMaskHelper.ShowLayer(Camera.main, "RemotePlayer");
     CameraCullingMaskHelper.ShowLayer(Camera.main, "AllPlayerInteractibles");
     Service.Get <EventDispatcher>().DispatchEvent(default(BlobShadowEvents.EnableBlobShadows));
     Service.Get <EventDispatcher>().DispatchEvent(default(PlayerNameEvents.ShowPlayerNames));
     Service.Get <EventDispatcher>().DispatchEvent(default(PlayerIndicatorEvents.ShowPlayerIndicators));
     if (SceneRefs.UiChatRoot != null)
     {
         WorldChatController componentInChildren = SceneRefs.UiChatRoot.GetComponentInChildren <WorldChatController>();
         if (componentInChildren != null)
         {
             componentInChildren.IgnoreRemoteChat = false;
         }
     }
 }
 private void Awake()
 {
     worldChat = GetComponentInChildren <WorldChatController>();
 }