private void DoAction() { if (count == 1 && num != 0) { if (nextState == Boataction.D) { devilOnBoat(); } else if (nextState == Boataction.DD) { devilOnBoat(); } else if (nextState == Boataction.P) { priestOnBoat(); } else if (nextState == Boataction.PP) { priestOnBoat(); } else if (nextState == Boataction.PD) { priestOnBoat(); } count++; } else if (num == 2 && count == 2) { if (nextState == Boataction.DD) { devilOnBoat(); } else if (nextState == Boataction.PP) { priestOnBoat(); } else if (nextState == Boataction.PD) { devilOnBoat(); } count++; } else if ((num == 1 && count == 2) || (num == 2 && count == 3) || (num == 0 && count == 1)) { firstScene.MoveBoat(); count++; } else if ((num == 1 && count >= 3) || (num == 2 && count >= 4) || (num == 0 && count >= 2)) { GetOffBoat(); } isFinished = true; }