public override void Initialise(ESTrainingAtom _atom, Action <bool> _initCallback)
        {
            data = new SuppressionTestsData();
            data.Load();

            base.Initialise(_atom, _initCallback);
        }
Beispiel #2
0
        public override void Start(Action <String> _completionCallback)
        {
            //base.Start(_completionCallback);

            data.Load();

            string nextNode = "";

            bool classicSuppression = false;

            if ((data.chosenPerception == "LeftSuppressed") || (data.chosenPerception == "RightSuppressed"))
            {
                classicSuppression = true;
            }

            if (classicSuppression && data.blinkersRemovedConflict)
            {
                _completionCallback(atom.nextStep[0]);
            }
            else
            {
                _completionCallback(atom.nextStep[1]);
            }

            //The next node to traverse to
            //_completionCallback("");
        }
        public override void Start(Action <String> _completionCallback)
        {
            //base.Start(_completionCallback);

            data.Load();

            if (data.couldTiltUpward &&
                data.couldTiltDownward &&
                data.binocularTolerance)
            {
                _completionCallback(atom.nextStep[0]);
            }
            else     //They didn't make it.
            {
                _completionCallback(atom.nextStep[1]);
            }
        }