Files
DefendNJ/Assets/_DefendNJ/Scripts/Guns/GunAiComponent.cs

20 lines
373 B
C#

using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
public class GunAiComponent : Launcher
{
public override void Start()
{
}
public void AiShoot()
{
SpawnBullet(-1, (bulletPoint.position + bulletPoint.forward * 1f) - bulletPoint.position);
SpawnShell();
SpawnMuzzle();
}
}