Exemplo n.º 1
0
    IEnumerator StartShooting()
    {
        RayCastWeapon.Shoot();
        yield return(new WaitForSeconds(1f));

        Shoot();
    }
Exemplo n.º 2
0
 private void Update()
 {
     if (Input.GetButtonDown("Fire1"))
     {
         RayCastWeapon.Shoot();
     }
 }