- Fix Team tag bug.

This commit is contained in:
samJa 2015-08-21 15:12:27 -04:00
parent ae2750836d
commit c9a5226d5f
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;