Files
FPS-Kit-2.0/Assets/FPS Kit Version 2.0/_CustomAssets/3D Models/WeaponPack II/Scripts/Rocket.cs
T
reedgamingstudio 5b8ebb7a35 test
testing
2014-12-16 00:23:12 -06:00

18 lines
328 B
C#

using UnityEngine;
using System.Collections;
public class Rocket : MonoBehaviour {
public float timeOut = 4.0f;
// Use this for initialization
void Start () {
Destroy (gameObject, timeOut);
}
// Update is called once per frame
void Update () {
transform.Translate(new Vector3(0,0,1) * Time.deltaTime*150);
}
}