Example #1
0
 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();
     }
 }
Example #2
0
 public string Next()
 {
     commandController.Next();
     return("Next...");
 }