public void ChangeState() { int index = reader.ReadNumber("Choose block: ", 1, pathController.blockStates.Length) - 1; BlockState state = reader.ReadState("Choose state: "); pathController.ChangeState(index, state); writer.WriteLine("Block state changed."); }
public void ChangeState(int index, BlockState state) { Console.WriteLine("State is changed"); pathController.ChangeState(index, state); }