Пример #1
0
        public override void ShapeAdded(ShapeScript shape)
        {
            if (isTutorial)
            {
                if (shape.Equals(goalShape))
                {
                    ScreenManager.Instance.FlashResult(true);
                    _givenShape = shape;
                }
                else
                {
                    ScreenManager.Instance.FlashResult(false);
                    return;
                }
            }

            else
            {
                _givenShape = shape;
            }

            _machineText.text = "Now turn the handle ->";
        }
Пример #2
0
 public override Outcome GetOutcome()
 {
     return(goalShape.Equals(_givenShape) ? Outcome.Achieved : Outcome.NotAchieved);
 }