You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
413 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class BlockInput : MonoBehaviour
  5. {
  6. public Character character;
  7. public BlockReader blockReader;
  8. public void Update()
  9. {
  10. if (Input.GetKeyDown(KeyCode.Space))
  11. ReadNext();
  12. }
  13. [ContextMenu ("Read Next")]
  14. public void ReadNext()
  15. {
  16. blockReader.Read(character);
  17. }
  18. }