using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bullet : MonoBehaviour {
// Use this for initialization
void Start () {
Destroy(gameObject, 5);
}
// Update is called once per frame
void OnCollisionEnter () {
Destroy(gameObject);
}
}
No comments:
Post a Comment