public override void Update() { //seems actually I found a bug in unity. GetMousebuttonDown returns true for 2 consecutive frames. //weird if (Input.GetMouseButtonDown(0)) { Snap = true; } if (Input.GetMouseButtonDown(1)) { Snap = false; } if (Snap != OldSnap) { OldSnap = Snap; LifterLandingEvent landEvent = new LifterLandingEvent { LifterID = 1, LiftableID = 2, Landed = Snap }; // Simulate the Sequencer by just calling "Step" lifterCollectionEngine.Step(ref landEvent, 0); } movementPhaser.ScheduleMovement(); }
public override void DoStuff() { LifterLandingEvent landEvent = new LifterLandingEvent { LifterID = 10, LiftableID = 20, Landed = false }; lifterCollectionEngine.Step(ref landEvent, 0); }