public override void InitiatePhase(GenerationPhase phase) { switch (phase) { case GenerationPhase.Instance: //Do Nothing break; case GenerationPhase.Task: IntValue = GetRandomValue(); break; case GenerationPhase.Interval: case GenerationPhase.Trial: if (phase == GenerationFrequency) { IntValue = GetRandomValue(); } break; default: UnityEngine.Debug.LogError($"Unexpected GenerationPhase value: {phase}"); break; } }
public static string ToSerializationString(this GenerationPhase phase) { switch (phase) { case GenerationPhase.Instance: return("Instance"); case GenerationPhase.Interval: return("Interval"); case GenerationPhase.Trial: return("Trial"); case GenerationPhase.Task: return("Task"); default: UnityEngine.Debug.LogError($"Unexpected GenerationPhase: {phase}"); return(""); } }
public override void InitiatePhase(GenerationPhase phase) { switch (phase) { case GenerationPhase.Task: endTime = UnityEngine.Time.time + 60.0 * Value; break; case GenerationPhase.Instance: case GenerationPhase.Interval: case GenerationPhase.Trial: // Do Nothing break; default: UnityEngine.Debug.LogError($"Unsupported GenerationPhase: {phase}"); break; } }
public virtual void InitiatePhase(GenerationPhase phase) { }