|
|
|
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.ComponentModel; |
|
|
|
using UnityEngine.Experimental.Perception.Randomization.Parameters; |
|
|
|
using UnityEngine.Experimental.Perception.Randomization.Scenarios; |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
bool m_PreviouslyEnabled; |
|
|
|
// ReSharper disable once InconsistentNaming
|
|
|
|
internal ScenarioBase m_Scenario; |
|
|
|
ScenarioBase m_Scenario; |
|
|
|
internal RandomizerTagManager m_TagManager; |
|
|
|
RandomizerTagManager m_TagManager; |
|
|
|
|
|
|
|
[HideInInspector, SerializeField] internal bool collapsed; |
|
|
|
|
|
|
|
|
|
|
/// OnUpdate is executed every frame for enabled Randomizers
|
|
|
|
/// </summary>
|
|
|
|
protected virtual void OnUpdate() { } |
|
|
|
|
|
|
|
internal void Initialize(ScenarioBase parentScenario, RandomizerTagManager parentTagManager) |
|
|
|
{ |
|
|
|
m_Scenario = parentScenario; |
|
|
|
m_TagManager = parentTagManager; |
|
|
|
} |
|
|
|
|
|
|
|
internal virtual void Create() |
|
|
|
{ |
|
|
|