Team Data

TeamData is the definitions for a team. This is a ScriptableObject that can be applied to Team's components or/and EMI_NetworkManager component.

You need this so that when you set the Team Name field in the Team component it will also know who the enemy team names are.

Generate A New Team Data

To generate a new team data go to your project window in the Unity Editor and right click, then select:

Create > EMI > Generate New Team Data.

Then you can set the team settings either manually or using the automated method.

Manual Method

Select the previous created Team Data object you made. It will have a list in the inspector window called Teams. You must add a new entry for every team you want. This entry must include the name of the team (case-sensitive) and all of the enemy teams to this team (case-sensitive).

So for example if you wanted a red and a blue team to be able to hurt each other but not members of their own team the setup would look like the following:

Teams
    Size 2
    blue
        Name            blue
        Enemy Teams
            Size 1
            Element 0   red
    red
        Name            red
        Enemy Teams     
            Size 1
            Element 0   blue

Then you can assign team names as blue or red and it will auto pickup the enemy teams for you.