Exemplo n.º 1
0
        public void OnDrawGizmos()
        {
            if (UnityEditor.EditorPrefs.GetBool("SpawnPoint_DebugHostileZone", true) && (m_BecameNormalSpawn || !m_IsUseForInit))
            {
                Color colorHostile = Color.red;
                colorHostile.a = 0.1f;
                Gizmos.color = colorHostile;
                Gizmos.DrawSphere(transform.position, m_HostileSize);
            }

            if (UnityEditor.EditorPrefs.GetBool("SpawnPoint_DebugPoint", true))
            {
                if (m_IsUseForInit)
                {
                    Gizmos.color = ColorManager.GetSpawnColor(m_InitTeam);
                    Gizmos.DrawSphere(transform.position, 0.500f);
                    if (m_UseSquadInit)
                    {
                        Gizmos.color = Color.white;
                        Gizmos.DrawSphere(transform.position, 0.125f);
                        Gizmos.color = ColorManager.GetSpawnColor(m_InitSquad);
                        Gizmos.DrawSphere(transform.position, 0.100f);
                    }
                }
                else
                {
                    Gizmos.color = ColorManager.GetColor(eManagers.SpawnManager, false);
                    Gizmos.DrawSphere(transform.position, 0.500f);
                }
            }
        }
Exemplo n.º 2
0
 private void ShowSelectTeam()
 {
     ShowAdvancedLabelCenter(GetEditorText(7), m_LabelTxtStyleLeft);
     GUI.color = ColorManager.GetSpawnColor(m_InitTeam.enumValueIndex);
     m_InitTeam.enumValueIndex = ShowAdvancedEnumPopup(m_InitTeam.enumValueIndex, typeof(eSpawnM_Teams), 5);
     GUI.color = Color.white;
     ShowAdvancedToolTip(GetEditorText(8));
 }
Exemplo n.º 3
0
 private void ShowSelectSquad()
 {
     EditorGUI.BeginDisabledGroup(!m_UseSquadInit.boolValue);
     ShowAdvancedLabelCenter(GetEditorText(9), m_LabelTxtStyleLeft);
     GUI.color = ColorManager.GetSpawnColor(m_InitSquad.enumValueIndex);
     m_InitSquad.enumValueIndex = ShowAdvancedEnumPopup(m_InitSquad.enumValueIndex, typeof(eSpawnM_Squads), 5);
     GUI.color = Color.white;
     ShowAdvancedToolTip(GetEditorText(10));
     EditorGUI.EndDisabledGroup();
 }
Exemplo n.º 4
0
 private void ShowSquadSelection()
 {
     ShowAdvancedLabelCenter(GetEditorText(10), m_LabelTxtStyleLeft);
     GUI.color = ColorManager.GetSpawnColor(m_UserSquad.enumValueIndex);
     m_UserSquad.enumValueIndex = ShowAdvancedEnumPopup(m_UserSquad.enumValueIndex, typeof(eSpawnM_Squads), 5);
     GUI.color = Color.white;
     if (m_ShowTip == 0)
     {
         ShowAdvancedToolTip(GetEditorText(11));
     }
     else if (m_ShowTip == 1)
     {
         ShowAdvancedToolTip(GetEditorText(12));
     }
     else
     {
         ShowAdvancedToolTip(GetEditorText(13));
     }
 }
Exemplo n.º 5
0
 private void ShowTeamSelection()
 {
     ShowAdvancedLabelCenter(GetEditorText(6), m_LabelTxtStyleLeft);
     GUI.color = ColorManager.GetSpawnColor(m_UserTeam.enumValueIndex);
     m_UserTeam.enumValueIndex = ShowAdvancedEnumPopup(m_UserTeam.enumValueIndex, typeof(eSpawnM_Teams), 5);
     GUI.color = Color.white;
     if (m_ShowTip == 0)
     {
         ShowAdvancedToolTip(GetEditorText(7));
     }
     else if (m_ShowTip == 1)
     {
         ShowAdvancedToolTip(GetEditorText(8));
     }
     else
     {
         ShowAdvancedToolTip(GetEditorText(9));
     }
 }