hey guys my collision isnt working could you please check the script it attached it to the rocket launcher thanks
public class findweaponrocket : MonoBehaviour {
private string text = “Press F to pick up the weapon, you got the rocket launcher!”;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnCollisionEnter (Collision collision)
{
if (collision.collider.tag == “Player”)
{
Destroy (gameObject);
// this destroy is for debugging puporses
text = GUI.TextArea(new Rect(10,10,200,100), text, 200);
}
}
}