NetworkTeam.cs 664 B

1234567891011121314151617
  1. // simple component that holds team information
  2. using UnityEngine;
  3. namespace Mirror
  4. {
  5. [DisallowMultipleComponent]
  6. [AddComponentMenu("Network/ Interest Management/ Team/Network Team")]
  7. [HelpURL("https://mirror-networking.gitbook.io/docs/guides/interest-management")]
  8. public class NetworkTeam : NetworkBehaviour
  9. {
  10. [Tooltip("Set this to the same value on all networked objects that belong to a given team")]
  11. [SyncVar] public string teamId = string.Empty;
  12. [Tooltip("When enabled this object is visible to all clients. Typically this would be true for player objects")]
  13. [SyncVar] public bool forceShown;
  14. }
  15. }