From c9a5226d5f6bce40d233c71a6fa41c79232ac773 Mon Sep 17 00:00:00 2001 From: samJa Date: Fri, 21 Aug 2015 15:12:27 -0400 Subject: [PATCH] - Fix Team tag bug. --- Assets/Scenes/sam_UI.unity | 4 ++++ Assets/Scripts/Squad.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scenes/sam_UI.unity b/Assets/Scenes/sam_UI.unity index 7cc517b..908924a 100644 --- a/Assets/Scenes/sam_UI.unity +++ b/Assets/Scenes/sam_UI.unity @@ -538,6 +538,10 @@ Prefab: propertyPath: TargetCamera value: objectReference: {fileID: 272569012} + - target: {fileID: 11487706, guid: 399d6675ad4fa384096256e051a3e131, type: 2} + propertyPath: TeamTag + value: VampirePlayer + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 399d6675ad4fa384096256e051a3e131, type: 2} m_IsPrefabParent: 0 diff --git a/Assets/Scripts/Squad.cs b/Assets/Scripts/Squad.cs index 9b9ae8d..70d1524 100644 --- a/Assets/Scripts/Squad.cs +++ b/Assets/Scripts/Squad.cs @@ -151,7 +151,7 @@ public class Squad : Unit } else { - if (Tag.Equals(TagLayerManager.VampirePlayer)) + if (TeamTag.Equals(TagLayerManager.VampirePlayer)) { this.Tag = TagLayerManager.VampirePlayer; // set the tag to player 1 this.Layer = TagLayerManager.VampireLayerIndex;