Class AlternativePath Extends MonoModifier
    Public
    
    Applies penalty to the paths it processes telling other units to avoid choosing the same path.
Note that this might not work properly if penalties are modified by other actions as well (e.g graph update objects which reset the penalty to zero). It will only work when all penalty modifications are relative, i.e adding or subtracting penalties, but not when setting penalties to specific values.
When destroyed, it will correctly remove any added penalty.
Public Methods
        
                Apply
        
                (path)
    
                
                Called for each path that the Seeker calculates after the calculation has finished.
                    Public
                
            Public Variables
        
                Order
        
    
                
                
                    Public
                
            
        
                penalty
        
    
                
                How much penalty (weight) to apply to nodes.
                    Public
                
            
        
                randomStep
        
    
                
                Max number of nodes to skip in a row.
                    Public
                
            Inherited Public Members
        
                PreProcess
        
                (path)
    
                
                
                    Public
                
            
        
                seeker
        
    
                
                
                    Public
                
            Private/Protected Members
        
                ApplyNow
        
                (nodes)
    
                
                
                    Private
                
            
        
                Awake
        
                ()
    
                
                
                    Protected
                
            
        
                ClearOnDestroy
        
                ()
    
                
                
                    Private
                
            
        
                destroyed
        
    
                
                
                    Private
                
            
        
                InversePrevious
        
                ()
    
                
                
                    Private
                
            
        
                OnDestroy
        
                ()
    
                
                
                    Protected
                
            
        
                OnDisable
        
                ()
    
                
                
                    Protected
                
            
        
                OnUpgradeSerializedData
        
                (version, unityThread)
    
                
                Handle serialization backwards compatibility.
                    Protected
                
            
        
                prevNodes
        
    
                
                The previous path.
                    Private
                
            
        
                prevPenalty
        
    
                
                The previous penalty used.
                    Private
                
            
        
                rnd
        
    
                
                A random object.
                    Private
                        Readonly