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