Friday, February 8, 2019

Unity 3d Bullet script by allunityscripts

Bullet Script

unity bullet script full

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