strong textusing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dead : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
void OnCollisionEnter(Collision t){
if(t.gameObject.tag == "rbul"){
Destroy(gameObject);
}
}
// Update is called once per frame
void Update()
{
}
}
Hello.
This is an example of BAD POST:
- Title must be simple and clear, and give info about your problem.
- Need to explain your situation, examples, information, what you have, what yo utried, what you need, not just paste your code and submit.
What is Unity Answers?
Unity Answers is a place for asking questions and finding answers - all about Unity! Unity Answers co-exist with the Unity Forums, but they have different functions:
Unity Answers is a place for questions that can be answered! Avoid asking questions here that are subjective, argumentative, or require extended discussion.
Unity Forums is a place for discussions, opinions, showing off your work, getting feedback, and general community chatter.
One problem with the Unity Forums was that old threads tended to get buried, so users ended up asking the same questions over and over again. We hope that Unity Answers can function as a more efficient place for that kind of question and answer exchange, while the Unity Forums is still great for all the rest!
Moderators
What kind of questions can I ask here?
Unity questions, of course! As long as your question is:
detailed and specific
written clearly and simply
of interest to at least one other Unity user somewhere
... it is welcome here. Oh yes, and it should be about Unity.
Please look around to see if your question has already been asked (and maybe even answered!) before you ask. If you end up asking a question that has been asked before, it may end up getting rejected in the moderation queue or closed if it has been published. Other users will hopefully edit in links to related or similar questions to help future visitors find their way.
Post Closed.