Exemple #1
0
        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;
            }
        }
Exemple #2
0
        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("");
            }
        }
Exemple #3
0
        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)
 {
 }