GUN GETS THROWN
This commit is contained in:
@@ -11,7 +11,7 @@ public class ThrowerEnemy : MonoBehaviour
|
||||
public bool isInside;
|
||||
|
||||
public float playerDistance;
|
||||
public GameObject GunBayonette;
|
||||
public GameObject GunThrow;
|
||||
|
||||
private NavMeshAgent agent;
|
||||
public Transform target;
|
||||
@@ -42,7 +42,7 @@ public class ThrowerEnemy : MonoBehaviour
|
||||
playerDistance = Vector3.Distance(transform.position, target.position);
|
||||
if (playerDistance < 25)
|
||||
{
|
||||
Instantiate(GunBayonette);
|
||||
Instantiate(GunThrow, transform);
|
||||
}
|
||||
}
|
||||
private void LateUpdate()
|
||||
|
||||
Reference in New Issue
Block a user