public IEnumerator when_shoot_should_using_the_default_ammo() { Linear_gun gun = weapon.GetComponent <Linear_gun>(); var bullet = gun.shot(); yield return(new WaitForSeconds(1)); target.assert_collision_enter(bullet); MonoBehaviour.DestroyImmediate(bullet); }
public IEnumerator when_hit_should_destroy_the_bullet() { Linear_gun gun = weapon.GetComponent <Linear_gun>(); var bullet = gun.shot(); yield return(new WaitForSeconds(1)); helper.game_object.comp.is_null(bullet); target.assert_not_collision_enter(); }