Example #1
0
 private void Action()
 {
     if (Input.GetMouseButton(0) || Input.GetMouseButton(1))            //left
     {
         animator.SetBool("isShooting", true);
         if (Input.GetMouseButton(0))
         {
             bulletController.CommonShoot();
         }
         else if (Input.GetMouseButton(1))
         {
             bulletController.ShootStrongBullet();
         }
     }
     else
     {
         animator.SetBool("isShooting", false);
     }
 }