//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(); } }
//Updates the Editor private void UpdateEditor() { if (squadManager) { if (squadManager.alignSquadTriggers) { SquadEditorGUI.ShowAlignedSquadTriggerAxis(squadManager); } SquadEditorGUI.ShowSpawnMarkers(squadManager); SquadEditorGUI.ShowSquadTriggerMarkers(squadManager); Repaint(); HandleUtility.Repaint(); } }
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(); } }