// Rearranges the Target IDs into a static array, so the characters always have the same ID numbers for use in the threat system. possibly other applications. //IE: Tank will always ALWAYS be 0, healer will ALWAYS be 1, etc public void sendIDs() { for (int i = 0; i < targets.Length; i++) { GameObject currentTar = targets[i].gameObject; PlayerID ID = currentTar.GetComponent <PlayerID>(); //ID.assignSlot(i); if (targets[i].gameObject.name == "Tank Character(Clone)") { ID.assignID(0); IDs[0] = targets[i]; } else if (targets[i].gameObject.name == "Melee Character(Clone)") { ID.assignID(2); IDs[2] = targets[i]; } else if (targets[i].gameObject.name == "Healer Character(Clone)") { ID.assignID(1); IDs[1] = targets[i]; } else if (targets[i].gameObject.name == "Ranged Character(Clone)") { ID.assignID(3); IDs[3] = targets[i]; } } }