public void Update() { if (Input.GetKeyDown(KeyCode.UpArrow)) { commandController.Prev(); } if (Input.GetKeyDown(KeyCode.DownArrow)) { commandController.Next(); } if (Input.GetKeyDown(KeyCode.Home)) { commandController.First(); } if (Input.GetKeyDown(KeyCode.End)) { commandController.Last(); } }
public string Next() { commandController.Next(); return("Next..."); }