Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey(KeyCode.LeftArrow) && Input.GetKey(KeyCode.RightArrow))
     {
         shooter.AttemptAttack();
     }
     else if (Input.GetKey(KeyCode.LeftArrow))
     {
         AttackLeft();
     }
     else if (Input.GetKey(KeyCode.RightArrow))
     {
         AttackRight();
     }
 }