public override void StartAction() { var move = new CMove(); CCell cell = selected.cell.Clone(); field.SetIconAt(targeted.cell, selected); field.SetIconAt(cell, targeted); move.AddMove(selected, field.GetIconCenterByCell(selected.cell)); move.AddMove(targeted, field.GetIconCenterByCell(targeted.cell)); move.SetObserver(this); }
public override void StartAction() { move = new CMove(); CGame.Sounds.fall.Play(); for (int col = 0; col < field.width; col++) { ColumnFreeFall(col); } if (move.IsFinished()) { ComplateAction(); } else { move.SetObserver(this); } }