Exemplo n.º 1
0
    //Call to update the editor
    public void UpdateEditor()
    {
        if (squad)
        {
            SquadEditorGUI.ShowSquadBoundaries(squad.SquadTrigger);
            SquadEditorGUI.ShowSpawnMarkers(squad.SquadTrigger);
            SquadEditorGUI.ShowSquadTriggerMarkers(squad.SquadTrigger.SquadManager);

            Repaint();
            HandleUtility.Repaint();
        }
    }
Exemplo n.º 2
0
    //Updates the Editor
    private void UpdateEditor()
    {
        if (squadManager)
        {
            if (squadManager.alignSquadTriggers)
            {
                SquadEditorGUI.ShowAlignedSquadTriggerAxis(squadManager);
            }

            SquadEditorGUI.ShowSpawnMarkers(squadManager);
            SquadEditorGUI.ShowSquadTriggerMarkers(squadManager);

            Repaint();
            HandleUtility.Repaint();
        }
    }
Exemplo n.º 3
0
    public void OnSceneGUI()
    {
        if (unitCursor.CurrentSquad != null)
        {
            Squad squad = unitCursor.CurrentSquad;

            unitCursor.MoveUnit();

            SquadEditorGUI.ShowSquadBoundaries(squad.SquadTrigger);
            SquadEditorGUI.ShowSpawnMarkers(squad.SquadTrigger);
            SquadEditorGUI.ShowSquadTriggerMarkers(squad.SquadTrigger.SquadManager);

            Repaint();
            HandleUtility.Repaint();
        }
    }