예제 #1
0
        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.");
        }
예제 #2
0
 public void ChangeState(int index, BlockState state)
 {
     Console.WriteLine("State is changed");
     pathController.ChangeState(index, state);
 }