Hi, class, I added my sample soundtrack it is called digital reference its copyright protected and being updated as equipment becomes available. I also added laser sound to my player ship. Iā m pursuing adding enemy ships that shoot back. Working c#code could use guidance on how to go about it?
Any insight is welcome. Thank you
URL: ToPlay
https://www.dmmsdi.com/prweb/index.html
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyManagement : MonoBehaviour
{
[SerializeField] GameObject deathFX;
[SerializeField] Transform parent;
// researching detecting player ship when collided trigger player ship explosion and destroying gameObject playership
void Start()
{
AddBoxCollider();
}
private void AddBoxCollider()
{
Collider boxCollider = gameObject.AddComponent<BoxCollider>();
boxCollider.isTrigger = false;
}
// reasrching emititng enemyguns to fireback and getting playership explosion to work with audiosource
// Start is called before the first frame update
public Transform target;
void Update()
{
transform.LookAt(target);
}
}