[Question]The collided settings in lecture 100 do not work on my enemy ships how to fix?
Martin · 14 minutes ago
All my enemy ship triggers are all on check in the collider boxes but bullets still bounce off them But don’t know what my enemies don’t die after a bullet hits them? and I don’t know how to get rid of this error message once and for all? Thank you for any guidance. This is how my game plays now
https://www.dmmsdi.com/prss/index.html
I updated my game on the server if you want to see how it plays now?
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemies: MonoBehaviour
{
// Use this for initialization
void Start()
{
Collider boxCollider = gameObject.AddComponent<BoxCollider>();
boxCollider.isTrigger = false;
}
void OnParticleCollision(GameObject other)
{
Destroy(gameObject);
}
}