This class will let you trigger a OnRandomInterval event periodically, at random intervals.  
 More...
Inherits MonoBehaviour.
|  | 
| Vector2 | RandomIntervalDuration = new Vector2(1f, 3f) | 
|  | the min and max duration of the interval between two events, in seconds 
 | 
| UnityEvent | OnRandomInterval | 
|  | the event to play at the end of each interval 
 | 
|  | 
| virtual void | Start () | 
|  | On Start we initialize our interval duration. 
 | 
| virtual void | Update () | 
|  | On Update we check if we've reached the end of an interval. 
 | 
| virtual void | DetermineNewInterval () | 
|  | Randomizes a new duration. 
 | 
This class will let you trigger a OnRandomInterval event periodically, at random intervals. 
◆ DetermineNewInterval()
  
  | 
        
          | virtual void MoreMountains.Tools.MMPeriodicExecution.DetermineNewInterval | ( |  | ) |  |  | protectedvirtual | 
 
Randomizes a new duration. 
 
 
◆ Start()
  
  | 
        
          | virtual void MoreMountains.Tools.MMPeriodicExecution.Start | ( |  | ) |  |  | protectedvirtual | 
 
On Start we initialize our interval duration. 
 
 
◆ Update()
  
  | 
        
          | virtual void MoreMountains.Tools.MMPeriodicExecution.Update | ( |  | ) |  |  | protectedvirtual | 
 
On Update we check if we've reached the end of an interval. 
 
 
◆ _currentInterval
  
  | 
        
          | float MoreMountains.Tools.MMPeriodicExecution._currentInterval = 0f |  | protected | 
 
 
◆ _lastUpdateAt
  
  | 
        
          | float MoreMountains.Tools.MMPeriodicExecution._lastUpdateAt = 0f |  | protected | 
 
 
◆ OnRandomInterval
      
        
          | UnityEvent MoreMountains.Tools.MMPeriodicExecution.OnRandomInterval | 
      
 
the event to play at the end of each interval 
 
 
◆ RandomIntervalDuration
      
        
          | Vector2 MoreMountains.Tools.MMPeriodicExecution.RandomIntervalDuration = new Vector2(1f, 3f) | 
      
 
the min and max duration of the interval between two events, in seconds 
 
 
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/InventoryEngineStore/Assets/InventoryEngine/MMTools/Accessories/MMActivation/MMPeriodicExecution.cs