public override void Init() { FirstEquationSlot = new NumberSlot(this, 20, 80, false, false); SecondEquationSlot = new NumberSlot(this, 220, 80, false, false); ThirdEquationSlot = new NumberSlot(this, 80, 80, false, true); FourthEquationSlot = new NumberSlot(this, 280, 80, false, true); FirstProductSlot = new NumberSlot(this, 50, 234, true, false); SecondProductSlot = new NumberSlot(this, 250, 234, true, false); Slots.Add(FirstEquationSlot); Slots.Add(SecondEquationSlot); Slots.Add(ThirdEquationSlot); Slots.Add(FourthEquationSlot); Slots.Add(FirstProductSlot); Slots.Add(SecondProductSlot); foreach (NumberSlot slot in Slots) { Screen.AddEntity(slot); } SetCurrentOperator(); }
void grabBalloonTo(TutorialHand hand, DragableNumber num, NumberSlot to) { moveHandAction(hand, num); Actions.AddAction(new CallFunction(delegate() { hand.Grab(); }), true); moveHandAction(hand, to); Actions.AddAction(new CallFunction(delegate() { hand.IsGrabbing = false; }), true); }
public override void Init() { FirstEquationSlot = new NumberSlot(this, 50, 80, false); SecondEquationSlot = new NumberSlot(this, 250, 80, false); FirstProductSlot = new NumberSlot(this, 50, 234, true); SecondProductSlot = new NumberSlot(this, 250, 234, true); Slots.Add(FirstEquationSlot); Slots.Add(SecondEquationSlot); Slots.Add(FirstProductSlot); Slots.Add(SecondProductSlot); foreach (NumberSlot slot in Slots) { Screen.AddEntity(slot); } }