示例#1
0
 // Update is called once per frame
 void Update()
 {
     weaponSelectSystem.Update();
     if (selecting)
     {
         if (Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.LeftArrow))
         {
             weaponSelectSystem.selecting = false;
             selecting = false;
             StopCoroutine(waitSelectingCoroutine());
         }
     }
     else if (Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.LeftArrow))
     {
         selecting = true;
         weaponSelectSystem.selecting = true;
         StartCoroutine(waitSelectingCoroutine());
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     weaponSelectSystem.Update();
 }