Fix tag layer manager bug.

This commit is contained in:
Samuel 2015-08-17 17:25:04 -04:00
parent 5cf59ae91a
commit 3827ca6722
2 changed files with 6 additions and 4 deletions

View File

@ -6,11 +6,11 @@ using System.Linq;
public class TagLayerManager : MonoBehaviour public class TagLayerManager : MonoBehaviour
{ {
// Use this for initialization // Use this for initialization
private static readonly string[] availableTags = UnityEditorInternal.InternalEditorUtility.tags; //private static readonly string[] availableTags = UnityEditorInternal.InternalEditorUtility.tags;
// TODO FIND A WAY TO ADD EXCEPTION ERROR IF THE USER OMMIT TO ADD TAGS!!! // TODO FIND A WAY TO ADD EXCEPTION ERROR IF THE USER OMMIT TO ADD TAGS!!!
public static string Human = availableTags[7]; public static string Human = "Human";
public static string VampirePlayer = availableTags[8]; public static string VampirePlayer = "VampirePlayer";
public static string ZombiePlayer = availableTags[9]; public static string ZombiePlayer = "ZombiePlayer";
// TODO remove hard coding layers // TODO remove hard coding layers
public static int HumanLayerIndex = 8; public static int HumanLayerIndex = 8;
public static int VampireLayerIndex = 9; public static int VampireLayerIndex = 9;

View File

@ -7,3 +7,5 @@ EditorBuildSettings:
m_Scenes: m_Scenes:
- enabled: 1 - enabled: 1
path: Assets/Scenes/AwesomeSplashScreen.unity path: Assets/Scenes/AwesomeSplashScreen.unity
- enabled: 1
path: Assets/Scenes/Scene_Legere.unity